I'm having a bit of a mare here. There's something I need to do and I can't work out the correct order in which to do it. Let me set the scene:
When the user fires off a search using the search control it Response.Redirect()s and puts the search parameters in the query string. This works no problem - the page loads and renders without a problem.
It adds in some controls to the page at this point - a next button, a back button, and a number of 'page' buttons (depending on how many pages there are).
Here is where the problem arises.
A use clicks on the button to go to page 8.
The page initialises, loads and binds - ONLY THEN DOES MY CLICK EVENT FIRE.
This means that any controls my click event causes to be loaded are not rendered to the stream do not bind to their events.
If the user then clicks *another* page button they get the page state that SHOULD have been displayed for the previous click event. This continues click after click.
I guess what I need to know is how do I load controls onto the page in a server-side event without messing everything up. It seems such a natural thing to do!
Yet another unchecked rambling brought to you by:
Oddball
When the user fires off a search using the search control it Response.Redirect()s and puts the search parameters in the query string. This works no problem - the page loads and renders without a problem.
It adds in some controls to the page at this point - a next button, a back button, and a number of 'page' buttons (depending on how many pages there are).
Here is where the problem arises.
A use clicks on the button to go to page 8.
The page initialises, loads and binds - ONLY THEN DOES MY CLICK EVENT FIRE.
This means that any controls my click event causes to be loaded are not rendered to the stream do not bind to their events.
If the user then clicks *another* page button they get the page state that SHOULD have been displayed for the previous click event. This continues click after click.
I guess what I need to know is how do I load controls onto the page in a server-side event without messing everything up. It seems such a natural thing to do!
Yet another unchecked rambling brought to you by:
Oddball