c# - asp:SqlDataSource binded to asp:DropDownList -
I have an asp: SqlDataSource and asp: dropdown list components on my page. This works fine on the normal page.
Now I want to put it on a new page like URL ... mypage.aspx? In TransactionID = 2 page_load I want to make the transaction drop down selected index 2. But it always connects to 1. I think these things happen in this sequence: In page_load I set 2 selected index. Then the asp: SQL decoding the selection statement and binds it in the dropdown list, that is why the index selected in my dropdown list is always 1, whether I set it in page_load.
So, how can I bind ASP: SQLDOSOSSRSAP: dropdown list and select it to some of the selected index parameter << P>
To set the selected index, type an event handler for the OnDatabase event of DropDownLists then is bound to it
Comments
Post a Comment