drop down list index changed automaticlly
Hi all i have 2 drop down list on my web page
the first one bound to a sqldatasource and it's work fine
............................
the second one bound to a sqldatasource (with a parameter depends on the first drop down list selected value )
and it's work fine too .
But
when a user make a selection on the second drop down list, any post back on the page will return the second drop down list selected index equal to 0 :confused:
I tried so hard (ON MSDN) to understand why this happen only on this drop down list....
but no result, Any help will be appreciated :wave:
Re: drop down list index changed automaticlly
Re: drop down list index changed automaticlly
Does the first ddl change after a change of ddl2?
Re: drop down list index changed automaticlly
Does the first drop down list gets bound during the postback? How is it bound initially?
Re: drop down list index changed automaticlly
Hello,
This doesn't answer your question in anyway, but I feel it needs to be said...
Using SqlDataSources, although gets you up and running quickly, used be regarded as only suitable for Proof Of Concept applications. They are prone to being problematic, and limited when it comes to more advanced features. In terms of creating a scalable and maintainable system, you really ought to look to a true multiple tier architecture, rather than use SqlDatabSources, IMO.
Gary