You will want to use response.expires = 0. You can use response.expires = -1, but I think you will be asking for errors later. <BR><BR>What it does?<BR>response.expires = NumberOfMinutes<BR><BR>NumberOfMinutes until what? The number of minutes before a page cached on a server expires. So zeor minutes causes a page to refrash each access. So as you can see -1 minutes will work, but you might get errors.<BR><BR>Hope this helps<BR>SKOOTER the ASP-puter
Actually, it isn't -1 minutes. Negative numbers have special meaning to the .Expires property. Also, setting .Expires to 0 minutes may not expire the page immediately, however, setting it to -1 will.<BR><BR>Also, you can use the .ExpiresAbsolute property to cause the immediate expiration of a page.<BR><BR>See the MSDN article on the Response object:<BR>http://msdn.microsoft.com/library/default.asp?URL=/library/psdk/iisref/vbob6iwj.htm<BR>
To prevent HTML caching, include this tag in the head of your document. <BR><BR><meta http-equiv="Pragma" content="no-cache"><BR><BR>It is vanilla HTML and works better than any ASP method that I've ever tried.