Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Remove output cache on a user control

Status
Not open for further replies.

whatsthehampton

Programmer
Sep 13, 2005
121
CA
Hi,

Been reading all day but just cannot find a solution to this one...

I have a userControl (header.ascx) which has an <ASP:Image> in it

<%@ OutputCache Duration="3600" VaryByParam="m" %>

m is a querystring values indicating the users username

I want to output cache this userControl for some time; but if the user uploads a new image - how do I remove the cache for this page and reset the cache after the upload?

I programmatically change the name of the image to stop that caching.

Cheers,
Jeff



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top