SqlDataSource Refresh Problem
-
Dear sirs: I have a Web Form with an SqlDataSource with a simple select statement, and a GridView control that is tied to it. There is a ComboBox and a Submit button as well. When a selection is made (the first time) in the combo box and then the submit button is clicked, the Selecting Event for the SqlDataSource fires. However, on subsequent "submits" I cannot get the event to fire again. What do I need to do to get this event to fire; thus letting me know that new data is being fetched from the database? Thank you, R. Hyland
-
Dear sirs: I have a Web Form with an SqlDataSource with a simple select statement, and a GridView control that is tied to it. There is a ComboBox and a Submit button as well. When a selection is made (the first time) in the combo box and then the submit button is clicked, the Selecting Event for the SqlDataSource fires. However, on subsequent "submits" I cannot get the event to fire again. What do I need to do to get this event to fire; thus letting me know that new data is being fetched from the database? Thank you, R. Hyland
-
Fayu wrote:
1. What is your query? 2. Attach the code you are using
Here is the code for the SqlDataSource: < <> <> <> <> <> There really is no code for the Selecting Event, other than just capturing some text into a label when the event occurs (for testing purposes). Thanks