protected void LinkButtonA_Click(object sender, EventArgs e) { if (RadioButtonList_selectcity.SelectedValue == "Delhi") { string strCity = "Delhi"; string strStartCountry = ((LinkButton)sender).CommandArgument; adlst = visafmbl.ReadForm(strStartCountry, strCity); Visa_gridshow.DataSource = adlst; Visa_gridshow.DataBind(); } else if (RadioButtonList_selectcity.SelectedValue == "Mumbai") { string strCity = "Mumbai"; string strStartCountry = ((LinkButton)sender).CommandArgument; adlst = visafmbl.ReadForm(strStartCountry, strCity); Visa_gridshow.DataSource = adlst; Visa_gridshow.DataBind(); } else if (RadioButtonList_selectcity.SelectedValue == "Chennai") { string strCity = "Chennai"; string strStartCountry = ((LinkButton)sender).CommandArgument; adlst = visafmbl.ReadForm(strStartCountry, strCity); Visa_gridshow.DataSource = adlst; Visa_gridshow.DataBind(); } else if (RadioButtonList_selectcity.SelectedValue == "Bangalore") { string strCity = "Bangalore"; string strStartCountry = ((LinkButton)sender).CommandArgument; adlst = visafmbl.ReadForm(strStartCountry, strCity); Visa_gridshow.DataSource = adlst; Visa_gridshow.DataBind(); } }
protected void RadioButtonList_selectcity_SelectedIndexChanged(object sender, EventArgs e) { if (RadioButtonList_selectcity.SelectedValue == "Delhi") { VisaForm advisaform = new VisaForm(); List <VisaForm> adlst = new List <VisaForm>(); adlst = visafmbl.ReadDelhiForm(); Visa_gridshow.DataSource = adlst; Visa_gridshow.DataBind(); } else if (RadioButtonList_selectcity.SelectedValue == "Mumbai") { VisaForm advisaform = new VisaForm(); List <VisaForm> adlst = new List <VisaForm>(); adlst = visafmbl.ReadMumbaiForm(); Visa_gridshow.DataSource = adlst; Visa_gridshow.DataBind(); } else if (RadioButtonList_selectcity.SelectedValue == "Channai") { VisaForm advisaform = new VisaForm(); List <VisaForm> adlst = new List <VisaForm>(); adlst = visafmbl.ReadChannaiForm(); Visa_gridshow.DataSource = adlst; Visa_gridshow.DataBind(); } else if (RadioButtonList_selectcity.SelectedValue == "Bangalore") { VisaForm advisaform = new VisaForm(); List <VisaForm> adlst = new List <VisaForm>(); adlst = visafmbl.ReadBangaloreForm(); Visa_gridshow.DataSource = adlst; Visa_gridshow.DataBind(); } }
public void BindVisaGridByCity() { if (RadioButtonList_selectcity.SelectedValue == "Delhi") { adlst = visafmbl.ReadDelhiForm(); Visa_gridshow.DataSource = adlst; Visa_gridshow.DataBind(); } else if (RadioButtonList_selectcity.SelectedValue == "Mumbai") { adlst = visafmbl.ReadMumbaiForm(); Visa_gridshow.DataSource = adlst; Visa_gridshow.DataBind(); } else if (RadioButtonList_selectcity.SelectedValue == "Chennai") { adlst = visafmbl.ReadChannaiForm(); Visa_gridshow.DataSource = adlst; Visa_gridshow.DataBind(); } else if (RadioButtonList_selectcity.SelectedValue == "Bangalore") { adlst = visafmbl.ReadBangaloreForm(); Visa_gridshow.DataSource = adlst; Visa_gridshow.DataBind(); } }