Exemplo n.º 1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!Page.IsPostBack)
     {
         ExtendBLL.PostPlate pp = new ExtendBLL.PostPlate();
         sections = pp.GetSections();
     }
 }
Exemplo n.º 2
0
        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();
            }
        }
Exemplo n.º 3
0
 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())
         );
     }
 }
Exemplo n.º 4
0
        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())
                        );
                }

            }
        }