Exemplo n.º 1
0
        protected void ddlDistrictNames_SelectedIndexChanged(object sender, EventArgs e)
        {
            List <MTalukDTO> lstdistrict = objITransactionBusiness.GetMTaluk().FindAll(A => A.DistrictID == ddlDistrictNames.SelectedValue);

            if (lstdistrict != null && lstdistrict.Count > 0)
            {
                ddlTaluk.DataSource = lstdistrict;
                ddlTaluk.DataBind();
                ddlTaluk.Items.Insert(0, "Select Taluk");
            }
        }
Exemplo n.º 2
0
        private void PopulateData()
        {
            List <MTalukDTO> lstMTaluk = new List <MTalukDTO>();

            lstMTaluk = objITransactionBusiness.GetMTaluk();
            if (lstMTaluk != null && lstMTaluk.Count > 0)
            {
                LVTalukDetails.DataSource = lstMTaluk;
                LVTalukDetails.DataBind();
            }
            else
            {
            }
        }