Пример #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         iller         ille  = new kentselDonusumPlatformu.iller();
         List <string> iller = new List <string>();
         iller = ille.getIller();
         DropDownList drpiller = (DropDownList)FindControl("iller");
         drpiller.DataSource = iller;
         drpiller.DataBind();
         DropDownList drpilceler = (DropDownList)FindControl("ilceler");
         drpilceler.DataSource = ille.getIlceler(drpiller.SelectedValue);
         drpilceler.DataBind();
     }
 }
Пример #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         iller ille = new kentselDonusumPlatformu.iller();
         List<string> iller = new List<string>();
         iller = ille.getIller();
         DropDownList drpiller = (DropDownList)FindControl("iller");
         drpiller.DataSource = iller;
         drpiller.DataBind();
         DropDownList drpilceler = (DropDownList)FindControl("ilceler");
         drpilceler.DataSource = ille.getIlceler(drpiller.SelectedValue);
         drpilceler.DataBind();
     }
 }