protected void Page_Load(object sender, EventArgs e) { //if (ConfigurationManager.AppSettings["access"].ToString() != ConfigurationManager.AppSettings["accessok"].ToString()) //{ // string page = Request.Url.Segments[Request.Url.Segments.Length - 1].ToString(); // if (Session["Role"] != null) // { // if (!Other.Get_UserAccess(page, Session["Role"].ToString())) // { // Response.Redirect("dashboard.aspx"); // } // } //} if (!Page.IsPostBack) { DDLSuperZone.DataSource = Masters.Get_Masters_Code_ID_Name("superzone"); DDLSuperZone.DataBind(); DDLSuperZone.Items.Insert(0, new ListItem("-Select Super Zone-", "none")); } }
public void Bind_DDL_SuperZone() { DDLSuperZone.DataSource = Masters.Get_Masters_Code_ID_Name("superzone"); DDLSuperZone.DataBind(); DDLSuperZone.Items.Insert(0, new ListItem("-Select Super Zone-", "none")); }