Ask a Question related to ASP.NET General, Design and Development.
-
Heinrich Moser #1
SmartNavigation and last page state
SmartNavigation is supposed to keep the page's last state
in the browser history. As far as I can tell, it doesn't
do that if you use Response.Redirect to change to another
page.
Steps to reproduce the behavior:
1. Create a new webform with one WebControls.TextBox and
two WebControls.Button-Controls "Do nothing" and "Jump".
2. Add the code
Response.Redirect("http://www.microsoft.com")
(or any other URL) to the Jump-Button's Click event.
3. Start the application. Enter "1" into the textbox and
click "Do Nothing". Enter "2" and click "Do Nothing".
Enter "3" and click "Jump". IE should now navigate to the
Microsoft homepage.
4. Notice that when you click on the Back button, the
textbox contains "2" and not "3", as you would expect.
This is a problem, because in our application the buttons
(which are labeled differently, of course) save the user
input into the database. When the user navigates back in
order to click on another jump button, the data is being
overwritten with old values.
Any suggestions will be appreciated.
Sincerely,
Heinrich
Heinrich Moser Guest
-
Changing the State of a web page using radio buttons.
I am trying to make a very simple web page that is only accessed through a small number of people but those people are allowed to change the... -
page view state for sort expression datagrid
using the ASP.NET datagrid control to displaying some data from SQLserver, also provide paging and sorting function for the datagrid. However,... -
Show down state of button when on page using templates
I am having the same problem.---I am not sure the issue has been made clear enough. The reason I want to use templates is to manage multiple pages... -
The View State Is Invalid for This Page and Might Be Corrupted
Can anyone provide some help on this issue? Our code works fine on a single machine but in a web farm environment we get the following error. ... -
why controls keep their state even on a different page?
I have 1. A main form with 2 buttons (btn1 and btn2) and a place holder (ph) 2. A Web User Control (ctl1) containing a textbox (txt) 3. A Web User... -
Ravikanth[MVP] #2
SmartNavigation and last page state
Hi
Response.Redirect("<<blah blan>>"), Redirects a client to
a new URL and specifies the new URL.
Smart navigation is best used with ASP.NET pages that
require frequent postbacks but with visual content that
does not change dramatically on return.
Ravikanth
state>-----Original Message-----
>SmartNavigation is supposed to keep the page's lastanother>in the browser history. As far as I can tell, it doesn't
>do that if you use Response.Redirect to change tothe>page.
>
>Steps to reproduce the behavior:
>
>1. Create a new webform with one WebControls.TextBox and
>two WebControls.Button-Controls "Do nothing" and "Jump".
>
>2. Add the code
>
>Response.Redirect("http://www.microsoft.com")
>
>(or any other URL) to the Jump-Button's Click event.
>
>3. Start the application. Enter "1" into the textbox and
>click "Do Nothing". Enter "2" and click "Do Nothing".
>Enter "3" and click "Jump". IE should now navigate tobuttons>Microsoft homepage.
>
>4. Notice that when you click on the Back button, the
>textbox contains "2" and not "3", as you would expect.
>
>This is a problem, because in our application the>(which are labeled differently, of course) save the user
>input into the database. When the user navigates back in
>order to click on another jump button, the data is being
>overwritten with old values.
>
>Any suggestions will be appreciated.
>
>Sincerely,
> Heinrich
>
>.
>Ravikanth[MVP] Guest



Reply With Quote

