protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { ExtendBLL.PostPlate pp = new ExtendBLL.PostPlate(); sections = pp.GetSections(); } }
protected void Page_Load(object sender, EventArgs e) { strPagePrivilege.Add("BKGL"); strPageUserType.Add("mana"); if (!Page.IsPostBack) { ExtendBLL.PostPlate pp = new ExtendBLL.PostPlate(); sections = pp.GetSections(); } }
protected void BindSections() { ExtendBLL.PostPlate pp = new ExtendBLL.PostPlate(); DataSet ds = pp.GetSections(); for (int i = 0; i < ds.Tables[0].Rows.Count; i++) { DropDownListSections.Items.Add( new ListItem(ds.Tables[0].Rows[i]["Name"].ToString(), ds.Tables[0].Rows[i]["ID"].ToString()) ); } }
protected void Page_Load(object sender, EventArgs e) { strPagePrivilege.Add("BKGL"); strPageUserType.Add("mana"); if (!Page.IsPostBack) { int id = 0; if (!string.IsNullOrEmpty(Request.QueryString["sectionID"])) { int.TryParse(Request.QueryString["sectionID"], out id); } ExtendBLL.PostPlate pp = new ExtendBLL.PostPlate(); if (id != 0) { LabMS.Model.PostPlate ppInfo = pp.GetModel(id); if (ppInfo != null) { SectionName.Text = ppInfo.Name; SectionList.Visible = false; SectionName.Visible = true; return; } } DataSet ds = pp.GetSections(); foreach (DataRow row in ds.Tables[0].Rows) { SectionList.Items.Add( new ListItem(row["Name"].ToString(), row["ID"].ToString()) ); } } }