473,785 Members | 2,867 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 16681
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
6487
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
1657
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
1201
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
9480
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,...
0
10152
jinu1996
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...
0
8974
agi2029
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...
1
7500
isladogs
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...
0
5381
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
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4053
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
3650
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2880
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.