473,473 Members | 2,125 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Don't show page in browser history

Hi
Is it possible to make sure that the page doesn't show in browser history
and won't effect Back button.
The problem is that every postback shows as another entry for "Back" button
and user goes through the hole history of postbacks if she wants to get to
previous page.
Thank you,
Shimon
Jan 6 '06 #1
3 2847
IF you don't want user to access the page by BACK button, then best would be
to disable CACHING of pages by client browser by adding prope meta tags on
pages. You can try the following JS on each page and it should disable
ability to use BACK button.

<script language="javascript">
window.history.forward(1);
</script>

"Shimon Sim" <sh**********@community.nospam> wrote in message
news:e4***************@TK2MSFTNGP12.phx.gbl...
Hi
Is it possible to make sure that the page doesn't show in browser history
and won't effect Back button.
The problem is that every postback shows as another entry for "Back"
button and user goes through the hole history of postbacks if she wants to
get to previous page.
Thank you,
Shimon

Jan 6 '06 #2
Dan
No he means that say he had page A and on there had a update button for
example and pressed it 3 times, thats 3 postbacks.

When he presses back he has to press back 4 times (to get past the 3
postbacks) in order to get to the original page.

I actually have the same annoying problem, i am sure there is a workaround,
their must be. I think the smartnav directive may solve it (tho it is not
crossbrowser but i think some peopl ehave made their own that is) or you
could make your own back button and store the original page that started the
chain as the target, combine that with the javascript from the previous post
and they will have to use your back button.

--
Dan
"Naveen K Kohli" <na*********@hotmail.com> wrote in message
news:OY**************@TK2MSFTNGP10.phx.gbl...
IF you don't want user to access the page by BACK button, then best would
be to disable CACHING of pages by client browser by adding prope meta tags
on pages. You can try the following JS on each page and it should disable
ability to use BACK button.

<script language="javascript">
window.history.forward(1);
</script>

"Shimon Sim" <sh**********@community.nospam> wrote in message
news:e4***************@TK2MSFTNGP12.phx.gbl...
Hi
Is it possible to make sure that the page doesn't show in browser history
and won't effect Back button.
The problem is that every postback shows as another entry for "Back"
button and user goes through the hole history of postbacks if she wants
to get to previous page.
Thank you,
Shimon


Jan 6 '06 #3


Hi Shimon,

I assume you are using ASP.net 2.0. My suggestion is that we could place
the code at the page to make it expire immediately. This way, when the user
wanna click the back button at IE, it will report one page expire error
message. Then he will have to focus on your page for the navigation. The
sample code is:
protected void Page_Load(object sender, EventArgs e)
{
Response.Cache.SetCacheability(HttpCacheability.Se rverAndNoCache);
Response.Cache.SetExpires(DateTime.Now.AddDays(-10));
}

Please feel free to let me know if you have any further question on this
issue.

Best Regards,
Wei-Dong XU
Microsoft Support
---------------------------------------------------------------------------
This posting is provided "AS IS" with no warranties, and confers no rights.
---------------------------------------------------------------------------
It is my pleasure to be of any assistance.
Jan 6 '06 #4

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

Similar topics

3
by: riotctrl | last post by:
Is there a way to use the history.back to display the actual url of the last page to the page ?
10
by: pmelanso | last post by:
Hello, How can I tell if there is a page to go back to in the history or not??? Same with forward??? say something like/// if (there is a page to go back to ) { // DO something }else { }
4
by: Tim Marsden | last post by:
Hi, If I navigate from Page1 to Page2 then to Page3, using the response.redirect. When the user press the Back button, I what then to go to Page 1 and start again, not Page2. I dont want the...
15
by: Nathan | last post by:
I have an aspx page with a data grid, some textboxes, and an update button. This page also has one html input element with type=file (not inside the data grid and runat=server). The update...
6
by: Coleen | last post by:
Hi all :-) I need to redirect to multiple pages on click of a transmit button, without redisplaying each page. This redirection is to capture session variables that are created on each page and...
1
by: disaia | last post by:
How can I access the History List of the User's browser from my ASP.NET page? Is there a way to do this? Thanks, Dominic Isaia disaia@earthlink.net
8
by: Ed Jay | last post by:
I want to use history.go() to navigate between my previously loaded pages. I'm looking for a way to trigger a function call when a page is accessed using history.go(). Is there an event generated?...
3
by: laryten | last post by:
Hi, Is there a way to update the same web page instead of getting a new page each time we click the submit button? The simplest thing to do is to delete the current page (or go back to the...
2
by: Max | last post by:
I recently moved to ASPnet Ext 3.5 What I can't get with Ajax and History browser managemet is this: User fills some fields (dropdown and textbox) on page 1 (all are in an update panel) User...
0
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,...
0
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...
1
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...
0
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,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
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...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.