Home > Software engineering >  Cascading Dropdown List Changing Extend Selection on The First Dropdown list
Cascading Dropdown List Changing Extend Selection on The First Dropdown list

Time:02-05

I want to create 3 Dropdown List for (Country, City and State) Cascading on Selection for The First Dropdown list Changing The Second and Selection for the second Changing The Third with SQL Server (ADO.Net) and ASP.Net C#! and this error showing me Can any one solve this error Please ? Here the asp.net design code The Fist one..enter image description here

And in the above, I also had this little routine (no need to type over and over the code to build a connection and load the data).

DataTable MyRstP(SqlCommand cmdSQL)
{
    DataTable rstData = new DataTable();
    using (SqlConnection conn = new SqlConnection(Properties.Settings.Default.Countries))
    {
        using (cmdSQL)
        {
            cmdSQL.Connection = conn;
            conn.Open();
            rstData.Load(cmdSQL.ExecuteReader());
        }
    }
    return rstData;
}
  • Related