Example #1
0
        public void GetSections()
        {
            try
            {
                items = ColController.GetSections();

                if (items != null)
                {
                    GridView1.DataSource = items;
                    GridView1.DataBind();
                }
            }
            catch (Exception ex)
            {
                Exceptions.ProcessModuleLoadException(this, ex);
            }
        }
Example #2
0
        public void FillDropDown()
        {
            try
            {
                // CreatePrefixSuffixDropdowns();

                List <ColInfo> items;
                //  ColController controller = new ColController();


                items = ColController.GetSections();


                ddlDisplaySection.DataTextField  = "SectionName";
                ddlDisplaySection.DataValueField = "SectionID";
                ddlDisplaySection.DataSource     = items;
                ddlDisplaySection.DataBind();
                //      ddlDisplaySection.Items.Insert(0, new ListItem("-- Select --", "0"));
            }
            catch (Exception ex)
            {
                Exceptions.ProcessModuleLoadException(this, ex);
            }
        }