V
Vaughn Haybittle
Hi,
I have an .aspx page with three databound drop-down-lists, a button and a
gridview. My intention for the page was for the user to select various
parameters from each of the three drop-down-lists and then click a button,
which based on the parameters, checks a database table for records using a
stored procedure. If there are no records that match the parameters, then
the stored procedure generates records from a default table. In either case
the records are then selected and bound to the gridview.
My problem is that the stored procedure is firing when the .aspx page is
loaded and not when I click on a server side button control. This results
in records being selected / added when the page is loaded and not when the
button is clicked.Why is this happening? Does it have to do with event
bubbling? If so what cn I do to ensure that the event only fires when the
button is clicked?
Thanks in advance!
Regards,
Vaughn
I have an .aspx page with three databound drop-down-lists, a button and a
gridview. My intention for the page was for the user to select various
parameters from each of the three drop-down-lists and then click a button,
which based on the parameters, checks a database table for records using a
stored procedure. If there are no records that match the parameters, then
the stored procedure generates records from a default table. In either case
the records are then selected and bound to the gridview.
My problem is that the stored procedure is firing when the .aspx page is
loaded and not when I click on a server side button control. This results
in records being selected / added when the page is loaded and not when the
button is clicked.Why is this happening? Does it have to do with event
bubbling? If so what cn I do to ensure that the event only fires when the
button is clicked?
Thanks in advance!
Regards,
Vaughn