Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Prevent postback saved into history of Internet Explorer

Reply
Thread Tools

Prevent postback saved into history of Internet Explorer

 
 
Simon
Guest
Posts: n/a
 
      01-11-2005
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.


 
Reply With Quote
 
 
 
 
Saravana
Guest
Posts: n/a
 
      01-11-2005
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:...
> 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.
>
>



 
Reply With Quote
 
 
 
 
Simon
Guest
Posts: n/a
 
      01-11-2005
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" <> wrote in message
news:udREd.5497$...
> 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:...
>> 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.
>>
>>

>
>



 
Reply With Quote
 
Joerg Jooss
Guest
Posts: n/a
 
      01-15-2005
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:news-
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Internet Explorer 8: C:\Program Files\Internet Explorer\iexplore.exe vs C:\Program Files (x86)\Internet Explorer\iexplore.exe Nathan Sokalski Windows 64bit 16 02-22-2010 08:31 AM
Saved Mail Gone and Sent Mail Not Being Saved Gregg Firefox 6 03-06-2006 02:13 AM
How does smartNavigation prevent Postback URL's from being added to the browser History? Itai ASP .Net Web Controls 0 08-10-2004 04:31 AM
How does smartNavigation prevent Postback URL's from being added to the browser History? Itai ASP .Net 0 08-10-2004 04:29 AM
How to prevent Postback URL's from being added to browser history =?Utf-8?B?Um9i?= ASP .Net 3 01-21-2004 07:33 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57