Hi folks
I have a usercontrol which works fine in my dev environment (which is just a website with one page that has the usercontrol in it).
The usercontrol contains 3 dropdownlists, ddl1, ddl2 and ddl3. When the selected index of ddl1 changes, ddl2 and ddl3 are re-populated from the database, based on the new SelectedValue of ddl1.
This works fine in my dev web page.
When I add this usercontrol to our prod website, selecting a different value in ddl1 doens't change ddl2 and ddl3
It's the exact same code in both cases (I have triple-checked this!) and I'm stumped as to what to look for next
ddl1 doesn't have a OnSelectedIndexChanged event, but causes Postback. In my dev environment, the Response.Write shows the new value of ddl1.
In the website that I need to add the usercontrol to, the Response.Write shows the old value off ddl1
I'm stumped as to what to look for next and appreciate any pointers
~LFCfan
I have a usercontrol which works fine in my dev environment (which is just a website with one page that has the usercontrol in it).
The usercontrol contains 3 dropdownlists, ddl1, ddl2 and ddl3. When the selected index of ddl1 changes, ddl2 and ddl3 are re-populated from the database, based on the new SelectedValue of ddl1.
This works fine in my dev web page.
When I add this usercontrol to our prod website, selecting a different value in ddl1 doens't change ddl2 and ddl3
It's the exact same code in both cases (I have triple-checked this!) and I'm stumped as to what to look for next
ddl1 doesn't have a OnSelectedIndexChanged event, but causes Postback. In my dev environment, the Response.Write shows the new value of ddl1.
In the website that I need to add the usercontrol to, the Response.Write shows the old value off ddl1
I'm stumped as to what to look for next and appreciate any pointers
Code:
if(!Page.IsPostback)
{
// do stuff
}
else
{
Response.Write(ddl1.SelectedValue);
ddl2.DataSource = GetValsFromDb(ddl1.SelectedValue);
}
~LFCfan