Exemple #1
0
        protected void Repnearbymetro_ItemDataBound(object sender, RepeaterItemEventArgs e)
        {
            if (e.Item.ItemType == ListItemType.Footer)
            {
                MasterData mdl = new MasterData();
                DataTable dt = new DataTable();
                CommonFunction.CommonFun objcf = new CommonFunction.CommonFun();
                DropDownList ddlcitynearby = e.Item.FindControl("ddlcitynearby") as DropDownList;

                dt = mdl.GetCityStates();
                objcf.FillDropDownList(ddlcitynearby, dt, "City_Name", "City_id");
                dt = mdl.Getstate();
                DropDownList ddlstatenc = e.Item.FindControl("ddlstatenc") as DropDownList;
                objcf.FillDropDownList(ddlstatenc, dt, "state_name", "state_id");
                MasterData objmst = new MasterData();
                dt = new DataTable();
                dt = objmst.Getcountry();
                DropDownList ddlcountrync = e.Item.FindControl("ddlcountrync") as DropDownList;
                objcf.FillDropDownList(ddlcountrync, dt, "Country_Name", "Country_ID");
            }
        }