Web/Manage/users/Manage_users.aspx.cs

(开头部分) 4KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using DS.BLL;
using DS.Common;

public partial class Manage_users : System.Web.UI.Page
{
    private DS.BLL.users bll=new DS.BLL.users();
    protected void Page_Load(object sender, EventArgs e)
    {
        if(!IsPostBack)
        {
            ((Label)Master.FindControl("titleMsg")).Text = "管理用户";
	    Session["SearchFlag"]=false;
            BindData();

        }
    }
    /// <summary>
    /// 搜索按钮
    /// </summary>
    protected void btnSearch_Click(object sender, EventArgs e)
    {
        Session["SearchFlag"]=true;
        ShowSearch();
    }

    /// <summary>
    /// 显示全部按钮
    /// </summary>
    protected void ViewAll_Click(object sender, EventArgs e)
    {
        Session["SearchFlag"]=false;
        ShowAll();
    }

    /// <summary>
    /// 显示搜索数据
    /// </summary>
    private void ShowSearch()
    {
	try
	{
        	int count=0;
	        DataSet ds=bll.Search(txt_lname.Text,txt_uname.Text,AspNetPager1.PageSize * (AspNetPager1.CurrentPageIndex - 1),AspNetPager1.PageSize,out count);
	        AspNetPager1.RecordCount=count;
        	usersGrid.DataSource=ds.Tables[0].DefaultView;
	        usersGrid.DataKeyNames=new string[]{"uid"};
	        usersGrid.DataBind();
	}
	catch{}
    }
后面还有 94 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。