Events firing without user interaction

  • Thread starter Vaughn Haybittle
  • Start date
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,596
Members
45,140
Latest member
SweetcalmCBDreview
Top