473,395 Members | 1,653 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

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

Nov 17 '05 #1
1 1637
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

-----Original Message-----
SmartNavigation is supposed to keep the page's last statein the browser history. As far as I can tell, it doesn't
do that if you use Response.Redirect to change to anotherpage.

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 theMicrosoft 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

.

Nov 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Martin Beed | last post by:
Hi all, Having a slight problem with Smartnavigation. It is a requirement that our site uses it, however because of the way pages are loaded (by loading controls into a place holder on the home...
2
by: Mark Goldin | last post by:
I am trying to use SmartNavigation="true" in my Page directive. My page has two radiobuttons. Both buttons have AutoPostBack enabled. When I am clicking on the buttons they are changing data source...
3
by: Elliot Rodriguez | last post by:
I am sure I'm not the only person whos experienced this :) In using SmartNavigation I notice that every few times my page posts back, attempts to read from the Request.Form collection bomb with...
1
by: danyeungw | last post by:
I get the following from the link http://support.microsoft.com/kb/314206. I need to have both work - the page stays where it is and set focus to next control. Does anyone have solution? I have...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.