Hi, I need to prevent Internet Explorer to save the page in history
collection when it is in PostBack.
To try do this I have put this code:
protected override void OnLoad( EventArgs evt)
{
if (IsPostBack)
Response.Cache. SetNoStore();
.....
base.OnLoad( evt);
}
With above code, when I press the back button the internet explore return
"The page cannot be displayed" because the IE don't save the page into the
history I think, but I need to prevent the IE history collection change, so
when I press the back button IE display the page loaded not in postback (the
first time that the page was loaded).
Is possible to do this ?
Thanks in advance.
Simon. 3 4139
Check out this faq, http://www.extremeexperts.com/Net/FA...ackButton.aspx
--
Saravana http://dotnetjunkies.com/WebLog/saravana/ www.ExtremeExperts.com
"Simon" <simon> wrote in message
news:eH******** ******@TK2MSFTN GP10.phx.gbl... Hi, I need to prevent Internet Explorer to save the page in history collection when it is in PostBack. To try do this I have put this code:
protected override void OnLoad( EventArgs evt) { if (IsPostBack) Response.Cache. SetNoStore(); ..... base.OnLoad( evt); }
With above code, when I press the back button the internet explore return "The page cannot be displayed" because the IE don't save the page into the history I think, but I need to prevent the IE history collection change,
so when I press the back button IE display the page loaded not in postback
(the first time that the page was loaded). Is possible to do this ?
Thanks in advance.
Simon.
Hi Saravana
I try to do like wrote into the site, but when I push the back button
Internet Explorer display "The page cannot be displayed" and I don' t want
that this happens.
Thanks.
Simon
"Saravana" <sa******@sct.c o.in> wrote in message
news:ud******** *********@news. cpqcorp.net... Check out this faq, http://www.extremeexperts.com/Net/FA...ackButton.aspx
-- Saravana http://dotnetjunkies.com/WebLog/saravana/ www.ExtremeExperts.com
"Simon" <simon> wrote in message news:eH******** ******@TK2MSFTN GP10.phx.gbl... Hi, I need to prevent Internet Explorer to save the page in history collection when it is in PostBack. To try do this I have put this code:
protected override void OnLoad( EventArgs evt) { if (IsPostBack) Response.Cache. SetNoStore(); ..... base.OnLoad( evt); }
With above code, when I press the back button the internet explore return "The page cannot be displayed" because the IE don't save the page into the history I think, but I need to prevent the IE history collection change, so when I press the back button IE display the page loaded not in postback (the first time that the page was loaded). Is possible to do this ?
Thanks in advance.
Simon.
Simon wrote: Hi Saravana
I try to do like wrote into the site, but when I push the back button Internet Explorer display "The page cannot be displayed" and I don' t want that this happens.
That's a browser specific warning you can only prevent if you follow
the Post-Redirect-Get pattern (with caching disabled).
Cheers,
-- http://www.joergjooss.de
mailto:ne****** **@joergjooss.d e This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Peter Bremer |
last post by:
Hi all,
I've written this little piece of code, which doesn't seem to work in
Mozilla 1.5. I haven't tried it on other Gecko browsers, but I've found
some indication that Netscape 6+ has the same problem. Internet Explorer 6
and Opera 7 have no problems with it.
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.1//EN'
'http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd'>
<script>document.write (window.history.length);</script>
|
by: Mark Petersen |
last post by:
Is there a way to prevent a page postback from being added to the browser
history without using SmartNavigation?
I'd like to be able to do this in a cross-browser compatible way (modern
standards-compliant browsers).
I've seen tons of articles on how to maintain scroll position and focus, but
what about this other feature of SmartNavigation?
Anyone know of a base page class that could accomplish this? Or do I have to
wait for Whidbey?
|
by: Rob |
last post by:
Each time a webform is posted back (submitted), another URL is added to the browser's history list. My web application allows a back button to return to previously visited pages, but I do not wish to return to each Postback URL, but rather only the initial page URL. Is there a way to prevent Postback URL's from being added to the browser's history list
Thanks in advance for any help.
|
by: Bruce W.1 |
last post by:
There's something I can't figure out. I added some javascript
behavior to my datagrid, just like in this article, except in
C# instead of VB:
http://www.dotnetbips.com/displayarticle.aspx?id=205
If I bind the datagrid to the dataset at all times, whether
Postback or not, then everything works fine.
However if I only bind it when Page is not Postback (just like
|
by: Itai |
last post by:
How does smartNavigation prevent Postback URL's from being added to
the browser History?
| |
by: Ted |
last post by:
is there an example of how one would go about selectively deleting items in
IE's history based on URL names using VB.NET? i have checked every resource
i know and come up short.
|
by: namemattersnot |
last post by:
I have a SAJAX login authentication script that, if the the correct
password is provided, returns "history.go(0)" to the page and I then
use "eval()" on the returned data to refresh it.
If the requested page has # in it (http://localhost/whatever/#), it
refreshes in Internet Explorer but not in Firefox. Any ideas why? Is
there a better way to refresh it?
Thanks.
|
by: =?Utf-8?B?bWtlbGx5NGNh?= |
last post by:
I've spent quite some time searching for a way to prevent the browser from
adding each of my postbacks to the History list, and have found several
different methods to do that or something similar, all of which either don't
do what I need or don't work at all. The closest solution is to enable
SmartNavigation, but it causes my first postback to effectively be ignored,
and it adds that first page view to the history. If I could figure out...
|
by: pavanip |
last post by:
Hi,
I am using the following code to get Internet Explorer filepath to display history list.
filePath1 = Environment.GetFolderPath(Environment.SpecialFolder.History)
by using the above path i am getting only internet explorer history list.
Please anyone can give suggestions how to get Firefox history list?where it will store these data?
And one more doubt what is the meaning of Computer list in firefox history?
Thanks in advance...
|
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,...
|
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...
| |
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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...
|
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...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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...
| |