示例#1
0
 void bindboothNo(string areatId)
 {
     votObj.areaId             = areatId;
     ddlBoothNo.DataSource     = votObj.getBoothMasterByAreaId();
     ddlBoothNo.DataTextField  = "boothNo";
     ddlBoothNo.DataValueField = "boothId";
     ddlBoothNo.DataBind();
     ddlBoothNo.Items.Insert(0, new ListItem("Select Booth No", "0"));
 }
示例#2
0
 void LoadBooths()
 {
     votObj.areaId             = ddlArea.SelectedValue;
     ddlBoothNo.DataSource     = votObj.getBoothMasterByAreaId();
     ddlBoothNo.DataTextField  = "boothNo";
     ddlBoothNo.DataValueField = "boothId";
     ddlBoothNo.DataBind();
     ddlBoothNo.Items.Insert(0, new ListItem("Select Booth No", "0"));
 }
    public static string loadBooth(string areaId)
    {
        string   JSON     = "";
        VoterBLL voterObj = new VoterBLL();

        voterObj.areaId = areaId;
        DataTable dtTemp = voterObj.getBoothMasterByAreaId();

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