473,386 Members | 1,621 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

How to avoid cache in asp.net iframe page

43
Hi,

I am using asp.net and c#
i have an iframe within a page PageA.
the source file for the ifram is page PageB.

I type in some text and press search from PageA, the result will be displayed in the iframe.
The problem is when I search for the same text string a second time, the result come out straightaway without executing the search action, which is because of the cache.
I want to avoid the cache in the page.
I tried to add code to the parent page PageA
<meta http-equiv="pragma" content="no-cache" />
in the aspx page, and
Response.Cache.SetCacheability(HttpCacheability.No Cache);
in the aspx.cs page
and neither works.

Any ideas ?

Thanks,

Tanya
Sep 10 '08 #1
1 3221
kenobewan
4,871 Expert 4TB
What you appear to want to achieve is a postback every time the page searches. Are you using ispostback? Here is a related post, suggest searching the site:
How do I force a postback in the codebehind?
Sep 10 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: vanisathish | last post by:
Hi All, I am running IIS5.1. I am invoking an ASP page in ther server continously from the HTML Page, to update some contents of the html page. The ASP page seem to run from the cache...
2
by: Any old Joe | last post by:
Hello I know that the refresh button is one of those things that is largely out of our control and makes working with browsers that bit more problematic but....If anyone could shed some light on...
18
by: Mark | last post by:
Hello. I am looking for a way to download and cache a web page that the user has not yet requested, and write the web page to the browser cache without displaying it. My intention is to improve...
3
by: visu | last post by:
I am currently working on my personl website a completely DB driven web application. in that i ve updating the images thru my admin panel .. but i am getting the old images not the update one when...
0
by: Michael Nemtsev | last post by:
Hi, I need to stay on the current page even if user clicks "BACK" in browser. Opera is very stubborn in attemp of turning cached page off, and using current. Does anybody know the way how to say...
6
by: howa | last post by:
Since it is part fo the standard, why I always heard that we should avoid iframe? any comments? thanks.
1
by: Anshul | last post by:
Hello, I'm using an Iframe to display user's detail if logged in and login form if logged out. Its working very fine in Mozilla but not working in IE. Cookies are getting destroyed but still...
2
by: ahighfidelity | last post by:
Hi. I wonder if someone can help me. I have just recently finished our designing and building our company website... www.mediajunction.co.uk All appears fine when viewing it fully on Firefox...
1
by: WT | last post by:
Hello, I have a dictionary made with objects which contain a control element, the control element is added to a Page when I want to edit the dictionary content. I put this dictionary in cache...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...

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.