473,806 Members | 2,605 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.Redire ct to change to another
page.

Steps to reproduce the behavior:

1. Create a new webform with one WebControls.Tex tBox and
two WebControls.But ton-Controls "Do nothing" and "Jump".

2. Add the code

Response.Redire ct("http://www.microsoft.c om")

(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 1654
Hi

Response.Redire ct("<<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-----
SmartNavigatio n 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.Redire ct to change to anotherpage.

Steps to reproduce the behavior:

1. Create a new webform with one WebControls.Tex tBox and
two WebControls.But ton-Controls "Do nothing" and "Jump".

2. Add the code

Response.Redir ect("http://www.microsoft.c om")

(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
1102
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 page), when a user navigates between "pages" (i.e. controls) IE scrolls them down to where they last access the previous control. This can also be seen with validation controls... the page will not scroll up to a validation summary if you page...
2
1260
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 for a treeview. (assigning different XML file). When I use localhost everything works properly, but using IP in a place of localhost is not working too good. After a few clicks the tree is not getting new data, Windows flag is waiving, and a...
3
1335
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 Object Reference Not Set to an Object errors. My page contains a number of controls that obviously postback. It is not a reliably reproductable error. If I reload AFTER the error all my page state is lost; its as if the user visited the page the...
1
2112
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 been working on this for days. I am using ASP.NET 2003. Thanks. DanYeung PRB: Controls Lose Focus When You Enable SmartNavigation and AutoPostBack View products that this article applies to. Article ID : 314206 Last Review : February 23,...
0
9719
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9598
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10371
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10111
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9192
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6877
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5683
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3852
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3010
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.