Esempio n. 1
0
        /// <summary>
        /// Bind Data to Drop Downs
        /// </summary>
        private void BindParish()
        {
            ListItem firstListItem = new ListItem(ddlParish.Items[0].Text, ddlParish.Items[0].Value);

            ddlParish.Items.Clear();

            if (ddlSubCounty.SelectedValue != "0")
            {
                MasterBLL objMasterBLL = new MasterBLL();
                ddlParish.DataTextField  = "parishname";
                ddlParish.DataValueField = "parishid";
                ddlParish.DataSource     = objMasterBLL.LoadParishData(ddlSubCounty.SelectedValue);
                ddlParish.DataBind();
            }
            ddlParish.Items.Insert(0, firstListItem);
            ddlParish.SelectedIndex = 0;
        }