private void LoadRole() { DdlRole.DataSource = objBll.GetJob("spGetRole", null); DdlRole.DataBind(); ListItem liPost1 = new ListItem("Select Role", "-1"); DdlRole.Items.Insert(0, liPost1); }
protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { DdlRole.DataSource = new BllAdmUserGroup().GetAll("GroupId,Name", "1=1", " Ld ", 0); DdlRole.DataTextField = "Name"; DdlRole.DataValueField = "GroupId"; DdlRole.DataBind(); DdlRole.Items.Insert(0, new ListItem("系统超级管理员", "0")); DdlRole.Items.Insert(0, new ListItem("全部", "-1")); } }
protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { LblEmpID.Visible = false; DdlRole.DataSource = Rolemaster.Get_RoleMaster(); DdlRole.DataBind(); fillQualification(); fillDesignation(); PnlLoginDetails.Visible = false; grdEmpDetails.DataSource = BindGvEmpDetail(); grdEmpDetails.DataBind(); // // DDLsuperzone.DataSource = SuperZone.GetSuperzonemaster(); // DDLsuperzone.DataBind(); DDLSDZone.DataSource = Masters.Get_AreaZone_Zone_SuperZone(0, "SDZone"); DDLSDZone.DataBind(); DDLSDZone.Items.Insert(0, new ListItem("All", "0")); DDLsuperzone.Items.Insert(0, new ListItem("All", "0")); DDLzone.Items.Insert(0, new ListItem("All", "0")); DDLareazone.Items.Insert(0, new ListItem("All", "0")); // DDLarea.Items.Insert(0, new ListItem("All", "0")); // DDLstate.DataSource = Customer_cs.Get_DestinationMaster("state"); DDLstate.DataBind(); DDLstate.Items.Insert(0, new ListItem("--Select State--", "0")); DDLcity.Items.Insert(0, new ListItem("--Select City--", "0")); SetView(); // txtjoin.Text = DateTime.Now.ToString("dd/MM/yyyy"); txtResign.Text = "30/01/2050"; EmpId(); } else { } }