This is probably a more general HTML question, but here it goes. We're
creating an asp.net app and noticed that sometimes if an aspx page has
already been visited (say, in a given session) that the page doesn't
actually get requested from the web server. In other words, we have
breakpoints on the page's constructor, init, pageload, etc. and they don't
get hit when this happens.
I turned off caching in IE ( by changing the Temporary Internet files
Settings via Tools | Internet Options) to see if it was the browser's fault,
and it appears it is. When I turned off caching the aspx page gets executed
on the server every time. So, I want to know how do you deal with this?
Can this be solved with a META tag or similar convention? There are certain
aspx pages we ALWAYS want to be requested so we can execute logic on the
server. So if the browsers, or IIS for that matter, caches the page we'll
be in trouble.
Any help would be much appreciated!
Thanks. 2 1025
Hello,
Are you sure that you are not using "Page.IsPostBac k" in the Page_Load?
This seems to work for me with not having pages cache:
Response.CacheC ontrol = "No-cache"
I hope that this is helpful to you,
Charles
"epigram" wrote: This is probably a more general HTML question, but here it goes. We're creating an asp.net app and noticed that sometimes if an aspx page has already been visited (say, in a given session) that the page doesn't actually get requested from the web server. In other words, we have breakpoints on the page's constructor, init, pageload, etc. and they don't get hit when this happens.
I turned off caching in IE ( by changing the Temporary Internet files Settings via Tools | Internet Options) to see if it was the browser's fault, and it appears it is. When I turned off caching the aspx page gets executed on the server every time. So, I want to know how do you deal with this? Can this be solved with a META tag or similar convention? There are certain aspx pages we ALWAYS want to be requested so we can execute logic on the server. So if the browsers, or IIS for that matter, caches the page we'll be in trouble.
Any help would be much appreciated!
Thanks.
Charles wrote: Hello,
Are you sure that you are not using "Page.IsPostBac k" in the Page_Load?
This seems to work for me with not having pages cache: Response.CacheC ontrol = "No-cache"
That's a rather awful way to do it in ASP.NET. Use the HttpCachePolicy
class instead.
Response.Cache. SetCacheability (HttpCacheabili ty.NoCache);
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: Harish |
last post by:
Hi,
Why is "jdbc:oracle:thin" called a thin driver?
Thanks in advance.
Harish.
|
by: Olivier aka Cypher |
last post by:
Hi gurus and fellows.
I designed an pilot applet with can be seen at
http://push.integration.euronext.com/Applet/index_raw2.htm
This applet has no GUI in fact. It receive financial data (which are
being pushed) and then update DOM element in the browser thanks to the
"JSObject" library.
Let's consider it acts as a "proxy" then.
|
by: mike |
last post by:
regards:
<a href="JavaScript:loadwindow(106,90);"
style="font-family:Verdana;">元智Intranet</a>
In HTML spec,are "href" and "style" called "attribute"?....@@
Could someone good give me the hand? @@.
thank you
may god be with you
|
by: wen |
last post by:
and, in which case, the following case will happen:
if __name__!='__main__':
do_sth()
any help would be appreciated.
|
by: G. Stewart |
last post by:
The word "Business" in the term implies some sort of commercial
aspects or connotations. But from what I can see, that is not
necesserially the case at all?
So what is the reasoning behind the term?
Stupid question, I know ... and quite irrelevant in many ways ... but
I really would like to know!
| |
by: Edward |
last post by:
Hi All,
Does anyone know if framework 2, or VS 2005 has a default cssclass called
"Report" ?
If I use the "Report" keyword for a cssclass on a gridview control it
inherits font size and colours.
Many Thanks
|
by: torus |
last post by:
Is the aspnet account called "aspnet" for all non-English versions of
Windows and IIS?
|
by: FAQ server |
last post by:
-----------------------------------------------------------------------
FAQ Topic - Why do some posts have <FAQENTRYin them ?
-----------------------------------------------------------------------
If a poster feels that the question they are answering should be
covered in the FAQ, placing <FAQENTRYin your post lets the FAQ
robot collect...
|
by: Garfield |
last post by:
I use Sax2 in xerces-c 2.7.
I know when is called "validateElement" method.
I know simply that is called before "startElement" until now.
but I was wrong!!!!
there is not always called "validateElement" before "startElement".
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it. ...
|
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...
| |
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...
|
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...
|
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...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
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...
| |