I have a gridview bound to some sql data and I have some textboxes that let me search this data. The problem is that when the client enters a search term, they can click anywhere on the page and the search happens. But they only want it to happen when the "search" button is pressed. (I am surprised this is a 'problem' but what can I do?)
Can I somehow stop the postback from happening until I call it? I tried an Update panel around the gridview, but it doesn't appear to have any effect.
Update:
Let me clarify just a little bit... when the search term is entered in the text box and any click event occurs, the gridview does it's thing and returns only the relevant items (done in a SQL stored procedure). I don't want this to happen until a button is pressed.
Thanks,
Alea
Can I somehow stop the postback from happening until I call it? I tried an Update panel around the gridview, but it doesn't appear to have any effect.
Update:
Let me clarify just a little bit... when the search term is entered in the text box and any click event occurs, the gridview does it's thing and returns only the relevant items (done in a SQL stored procedure). I don't want this to happen until a button is pressed.
Thanks,
Alea
Comment