J
jeffreytfritz
I have a situation where we have placed a composite webcontrol
(containing several buttons) on a webpage. The control has several
'OnClick' events wired up to the buttons, and handlers are placed in
the page's code-behind file. On a normal visit to the page, you click
one of the buttons, postback fires and the appropriate event handler
traps the OnClick event and processing continues as expected. All is
good.
The curious situation is this: from this page, if you click a standard
HTML hyperlink to access another area of the site, you get there no
problem (no postback involved). From the second page, if you click the
browser back button you are returned to the first page. This is the
expected behavior, all is good.
On the original page, if you attempt to press one of the buttons in the
composite control, the page posts back BUT the Page.IsPostBack property
is set to FALSE. Furthermore, if you inspect Request.Form for the
button that was pressed, you do receive the expected 'value' in the
Form collection.
We turned on ASP.NET trace mode to further troubleshoot this situation.
After going through the steps and clicking the back button, the
composite button control behaved as expected when a button was clicked.
The Page.IsPostback property contained TRUE, and the button 'OnClick'
event handler was properly fired.
Has anybody seen something like this before? Is the browser back
button skewing my viewstate or something? Any insight would be greatly
appreciated.
(containing several buttons) on a webpage. The control has several
'OnClick' events wired up to the buttons, and handlers are placed in
the page's code-behind file. On a normal visit to the page, you click
one of the buttons, postback fires and the appropriate event handler
traps the OnClick event and processing continues as expected. All is
good.
The curious situation is this: from this page, if you click a standard
HTML hyperlink to access another area of the site, you get there no
problem (no postback involved). From the second page, if you click the
browser back button you are returned to the first page. This is the
expected behavior, all is good.
On the original page, if you attempt to press one of the buttons in the
composite control, the page posts back BUT the Page.IsPostBack property
is set to FALSE. Furthermore, if you inspect Request.Form for the
button that was pressed, you do receive the expected 'value' in the
Form collection.
We turned on ASP.NET trace mode to further troubleshoot this situation.
After going through the steps and clicking the back button, the
composite button control behaved as expected when a button was clicked.
The Page.IsPostback property contained TRUE, and the button 'OnClick'
event handler was properly fired.
Has anybody seen something like this before? Is the browser back
button skewing my viewstate or something? Any insight would be greatly
appreciated.