I am converting a web site into a .NET AJAX enabled web site.
I am using 5 cascading drop down list boxes so that the user can only select what is appropriate for the item. They are in order Series, Enclosure, Speed, Manufacturer and Model. I am storing this information into a database (in text). When the user goes back in, I want to have these items populated with the previous selections.
How do I do this?
I have the following lines of code (C#):
string series = dtTable.Rows["systemtype"].ToString();
string enclosure = dtTable.Rows["enclosure"].ToString();
string speed = dtTable.Rows["speed"].ToString();
string manu = dtTable.Rows["manufacture"].ToString();
string model = dtTable.Rows["model"].ToString();
DropDownList1.SelectedItem.Text = series;
DropDownList2.SelectedItem.Text = enclosure ;
DropDownList3.SelectedItem.Text = speed ;
DropDownList4.SelectedItem.Text = manu ;
DropDownList5.SelectedItem.Text = model ;
When I bring up the page, nothing is there!
Am I doing something wrong with the CascadingDropDownListBox? Do I need to do this at a different time than in the Page_Load event?
Thanks in advance for the help!