Пример #1
0
 protected void ddlCountry_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (ddlCountry.SelectedIndex != 0)
     {
         objCommonClass.EmpID = Membership.GetUser().UserName.ToString();
         objCommonClass.BindStateForTerritory(ddlState, int.Parse(ddlCountry.SelectedValue.ToString()));
     }
     else
     {
         ddlState.Items.Clear();
         ddlCity.Items.Clear();
         ddlState.Items.Insert(0, new ListItem("Select", "Select"));
         ddlCity.Items.Insert(0, new ListItem("Select", "Select"));
     }
 }