PC Review


Reply
Thread Tools Rate Thread

ASPNet 2.0 Cache question

 
 
Jason Huang
Guest
Posts: n/a
 
      27th Sep 2007
Hi,

In the ASPNet 2.0 web application, the Form1.aspx is set to
HttpCacheability.NoCache,
and the Form2.aspx is also set to HttpCacheability.NoCache.
The Form1 will do the
Response.Redirect("Form2.aspx?CustomerNo=" + strCustomerNo.ToString() );
My question is since both Form1 and Form2 are set to NoCache,
why the Form2 will still receive the "CustomerNo" whenever I hit the Next
from the IE6 menubar?
Isn't it supposed to be nothing?
Thanks for help.


Jason



 
Reply With Quote
 
 
 
 
Nick Chan
Guest
Posts: n/a
 
      27th Sep 2007
On Sep 27, 5:01 pm, "Jason Huang" <JasonHuang8...@hotmail.com> wrote:
> Hi,

i dunno anything about HttpCacheability
but response.redirect basically tells the client to redirect. so of
course form2 will get ?CustomerNo
>
> In the ASPNet 2.0 web application, the Form1.aspx is set to
> HttpCacheability.NoCache,
> and the Form2.aspx is also set to HttpCacheability.NoCache.
> The Form1 will do the
> Response.Redirect("Form2.aspx?CustomerNo=" + strCustomerNo.ToString() );
> My question is since both Form1 and Form2 are set to NoCache,
> why the Form2 will still receive the "CustomerNo" whenever I hit the Next
> from the IE6 menubar?
> Isn't it supposed to be nothing?
> Thanks for help.
>
> Jason



 
Reply With Quote
 
=?Utf-8?B?TWFuaXNo?=
Guest
Posts: n/a
 
      27th Sep 2007
The back and Foward Button in the IE picks teh page from the browser Histroy.
SO If you want to clear the page when you move to and fro using the Back and
Forward button then you need to clear the Browser History.

Regards,
Manish

"Jason Huang" wrote:

> Hi,
>
> In the ASPNet 2.0 web application, the Form1.aspx is set to
> HttpCacheability.NoCache,
> and the Form2.aspx is also set to HttpCacheability.NoCache.
> The Form1 will do the
> Response.Redirect("Form2.aspx?CustomerNo=" + strCustomerNo.ToString() );
> My question is since both Form1 and Form2 are set to NoCache,
> why the Form2 will still receive the "CustomerNo" whenever I hit the Next
> from the IE6 menubar?
> Isn't it supposed to be nothing?
> Thanks for help.
>
>
> Jason
>
>
>
>

 
Reply With Quote
 
=?Utf-8?B?TWFuaXNo?=
Guest
Posts: n/a
 
      27th Sep 2007
The back and forward button in the browser brings the page from the browser
History. So If you want to clear the page when moving to and fro from back
and forward button then you would need to clear the History of the browser.

Regards,
Manish

"Jason Huang" wrote:

> Hi,
>
> In the ASPNet 2.0 web application, the Form1.aspx is set to
> HttpCacheability.NoCache,
> and the Form2.aspx is also set to HttpCacheability.NoCache.
> The Form1 will do the
> Response.Redirect("Form2.aspx?CustomerNo=" + strCustomerNo.ToString() );
> My question is since both Form1 and Form2 are set to NoCache,
> why the Form2 will still receive the "CustomerNo" whenever I hit the Next
> from the IE6 menubar?
> Isn't it supposed to be nothing?
> Thanks for help.
>
>
> Jason
>
>
>
>

 
Reply With Quote
 
bruce barker
Guest
Posts: n/a
 
      27th Sep 2007
not caching means the browser must request the page again if request fom
history. it does not change the url, so of course form2 sees it.


-- bruce (sqlwork.com)

Jason Huang wrote:
> Hi,
>
> In the ASPNet 2.0 web application, the Form1.aspx is set to
> HttpCacheability.NoCache,
> and the Form2.aspx is also set to HttpCacheability.NoCache.
> The Form1 will do the
> Response.Redirect("Form2.aspx?CustomerNo=" + strCustomerNo.ToString() );
> My question is since both Form1 and Form2 are set to NoCache,
> why the Form2 will still receive the "CustomerNo" whenever I hit the Next
> from the IE6 menubar?
> Isn't it supposed to be nothing?
> Thanks for help.
>
>
> Jason
>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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
question about aspnet 3.5 and IIS 5.1 Bob Microsoft ASP .NET 2 17th Nov 2007 12:56 PM
ASPNET cache cannot refresh =?Utf-8?B?Q2hhcnRz?= Microsoft ASP .NET 6 8th Jul 2005 01:47 AM
Changing value of ASP .NET Cache from outside aspnet process Hayato Iriumi Microsoft ASP .NET 1 4th Jun 2004 09:29 PM
vb -> vb.net ASPNet Date question Microsoft ASP .NET 1 2nd Jun 2004 08:14 PM
Question of aspnet processing Miller Lee Microsoft ASP .NET 0 25th Apr 2004 01:25 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:44 PM.