G
Guest
Hi,
I have a search bar as a User Control sitting on a Page. The asp web control
search button has its OnClick event set to a method "Search" which sets a
bool isSearch to true.
When I try to access this variable on the main page, it always comes up as
false. I think this is due to the main Page being loaded before the Search
method in the User Control is run.
How am I able to run the Search method in the User Control before the main
Page loads? - or is there a better way of dealing with this situation?
many thanks,
Pete
I have a search bar as a User Control sitting on a Page. The asp web control
search button has its OnClick event set to a method "Search" which sets a
bool isSearch to true.
When I try to access this variable on the main page, it always comes up as
false. I think this is due to the main Page being loaded before the Search
method in the User Control is run.
How am I able to run the Search method in the User Control before the main
Page loads? - or is there a better way of dealing with this situation?
many thanks,
Pete