473,796 Members | 2,688 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

<% Response.CacheC ontrol = "no-cache" %>

Hi,

Kind of spending too much time on the no-cache issue and found out something
like <% Response.CacheC ontrol = "no-cache" %>.
In my ASP.Net, a C# .aspx file, where do I put the <% Response.CacheC ontrol
= "no-cache" %>?
Is this enough to fix the Caching bug?
Thanks for help.

Jason


Nov 17 '05 #1
2 16683
Hi,

I think so, I have never do it that way, I use this line in the code behind:

Response.Cache. SetCacheability (HttpCacheabili ty.NoCache);
cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"Jason Huang" <Ja************ @hotmail.com> wrote in message
news:O7******** ******@TK2MSFTN GP14.phx.gbl...
Hi,

Kind of spending too much time on the no-cache issue and found out
something like <% Response.CacheC ontrol = "no-cache" %>.
In my ASP.Net, a C# .aspx file, where do I put the <%
Response.CacheC ontrol = "no-cache" %>?
Is this enough to fix the Caching bug?
Thanks for help.

Jason

Nov 17 '05 #2
Jason Huang wrote:
Hi,

Kind of spending too much time on the no-cache issue and found out
something like <% Response.CacheC ontrol = "no-cache" %>. In my
ASP.Net, a C# .aspx file, where do I put the <%
Response.CacheC ontrol = "no-cache" %>? Is this enough to fix the
Caching bug? Thanks for help.


Um... caching bug?

Anyway, either set the OutputCache directive on your page(s)

<%@ OutputCache Location="None" %>

or set the Cache property of the HttpResponse in your code-behind class:

Response.Cache. SetCacheability (HttpCacheabili ty.NoCache);

(which is equivalent to the directive shown above)

Cheers,
--
http://www.joergjooss.de
mailto:ne****** **@joergjooss.d e
Nov 17 '05 #3

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

Similar topics

19
6491
by: Jane Austine | last post by:
As far as I know python's threading module models after Java's. However, I can't find something equivalent to Java's interrupt and isInterrupted methods, along with InterruptedException. "somethread.interrupt()" will wake somethread up when it's in sleeping/waiting state. Is there any way of doing this with python's thread? I suppose thread interrupt is a very primitive functionality for stopping a blocked thread.
4
1658
by: Skip Montanaro | last post by:
(moving over from webmaster mailbox) scott> I'm sorry for bothering you, but I've tried to post to the Python scott> Tutor Mail List, tried to get someone from Bay PIggies to scott> respond, but no one is responding to my questions. If you don't scott> want to answer my questions, I'd appreciate an e-mail stating scott> that. My questions are as follows: A better place to post this would be to python-list@python.org (I've cc'd that...
9
1808
by: Daniel Schuchardt | last post by:
Hi @ all, I think thats a bug: SELECT '#' || '#' will work but SELECT '#' || CAST(NULL AS VARCHAR)
1
2154
by: Anders Both | last post by:
Why does my asp.net application sometimes write into the debug window The thread '<No Name>' (0x974) has exited with code 0 (0x0). ?
1
2138
by: Grey | last post by:
i use "this.Page.RegisterStartupScript()" to display the client-side script of confirmation box ...but I want to know that how can I know the user was clicked "YES" or "NO" as I need to do different action for these two choices. Million Thanks..
1
11130
by: Bob | last post by:
The thread '<No Name>' (0x29c) has exited with code 0 (0x0) What is this and why do I see it occasionally in the Output screen? Bob
4
7804
by: Charlie Brown | last post by:
The thread '<No Name>' (0xedc) has exited with code 0 (0x0) While debugging appplications, I often see this message popup in the VS output window. Although I havent specifically written any multithreading into my app, I would guess this means there is some somewhere. Can anyone offer some insight into this message?
3
2244
by: Jason Huang | last post by:
Hi, In my C# Windows form project, I can receieve the mail from the C# code, however, it's EMPTY in the MAIL FROM: Would someone give me some advice? string Data; byte szData; TcpClient SmtpServ = new TcpClient(ServSMTP.Text,25);
4
1204
by: post | last post by:
I'm trying to figure out what is wrong with my PHP installation, I am running PHP 5 and Apache with mySQL. I have been trying to use <?=$filed('$username')?> within a input box: <td>Login:<?php if($e_username) echo(' <font color="#ff0000">*</font>'); ?></td> <td align="right"><input type="text" name="username" style="width:140px;" value="<?=$field?>"> </td> </tr> <tr> $field is referring to a function that I have and...
3
2556
by: my cats, Gag and yak | last post by:
the following keeps showing up in Application_Error I have re-installed VS2008 and it still happens I do not know what this means, thank you your help. {Name = "EventArgs" FullName = "System.EventArgs"} : {Name = "EventArgs" FullName = "System.EventArgs"} base {System.Reflection.MemberInfo}: {Name = "EventArgs" FullName = "System.EventArgs"}
0
9673
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10452
Oralloy
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10169
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,...
0
6785
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5440
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...
0
5569
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4115
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
2
3730
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2924
bsmnconsultancy
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...

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.