D
Daves
a GridView control iterates users in my database and below it there are
search fields and Search button which applies filter expression to the
SqlDataSource.
The GridView is manually databound in the Page_Load event and I also persist
this databinding since the GridView uses postback since it users paging and
sorting options. Now, if the Search button is used, it's OnClick event is
run *AFTER* the Page_Load event so if I use it, I am actually databinding
twice!
Is there some way for me to check in the Page_Load if the Search button was
used or how can I handle this situation?
search fields and Search button which applies filter expression to the
SqlDataSource.
The GridView is manually databound in the Page_Load event and I also persist
this databinding since the GridView uses postback since it users paging and
sorting options. Now, if the Search button is used, it's OnClick event is
run *AFTER* the Page_Load event so if I use it, I am actually databinding
twice!
Is there some way for me to check in the Page_Load if the Search button was
used or how can I handle this situation?