示例#1
0
 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();
     }
 }
示例#2
0
 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();
     }
 }
示例#3
0
 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();
     }
 }