public void LoadAreas(string RegionId, DropDownList Area)
 {
     votObj.regId        = RegionId;
     Area.DataSource     = votObj.getAreaMasterByRegionId();
     Area.DataTextField  = "areaName";
     Area.DataValueField = "areaId";
     Area.DataBind();
     Area.Items.Insert(0, new ListItem("Select Area Name", "0"));
 }
Exemplo n.º 2
0
 void bindArea(string regionId)
 {
     votObj.regId           = regionId;
     ddlArea.DataSource     = votObj.getAreaMasterByRegionId();
     ddlArea.DataTextField  = "areaName";
     ddlArea.DataValueField = "areaId";
     ddlArea.DataBind();
     ddlArea.Items.Insert(0, new ListItem("Select Area", "0"));
 }
Exemplo n.º 3
0
 public void LoadAreas()
 {
     votObj.regId           = ddlRegion.SelectedValue;
     ddlArea.DataSource     = votObj.getAreaMasterByRegionId();
     ddlArea.DataTextField  = "areaName";
     ddlArea.DataValueField = "areaId";
     ddlArea.DataBind();
     ddlArea.Items.Insert(0, new ListItem("Select Area Name", "0"));
 }
    public static string loadArea(string regId)
    {
        string   JSON     = "";
        VoterBLL voterObj = new VoterBLL();

        voterObj.regId = regId;
        DataTable dtTemp = voterObj.getAreaMasterByRegionId();

        JSON = JsonConvert.SerializeObject(dtTemp, Newtonsoft.Json.Formatting.Indented);
        return(JSON);
    }