Click here to Skip to main content
16,010,553 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Text box with sqlcommand in VB2005 Pin
minhpc_bk12-Jan-07 21:27
minhpc_bk12-Jan-07 21:27 
QuestionHigh memory consumption Pin
Jon Sagara12-Jan-07 5:00
Jon Sagara12-Jan-07 5:00 
AnswerRe: High memory consumption Pin
led mike12-Jan-07 5:26
led mike12-Jan-07 5:26 
GeneralRe: High memory consumption Pin
Jon Sagara12-Jan-07 5:35
Jon Sagara12-Jan-07 5:35 
GeneralLove for ATLAS! Pin
Bulky Fellow12-Jan-07 4:50
Bulky Fellow12-Jan-07 4:50 
GeneralRe: Love for ATLAS! Pin
ednrgc12-Jan-07 5:48
ednrgc12-Jan-07 5:48 
QuestionComparevalidator control problem Pin
mohd imran abdul aziz12-Jan-07 3:45
mohd imran abdul aziz12-Jan-07 3:45 
QuestionCached WebHandler Pin
AndersLind12-Jan-07 3:16
AndersLind12-Jan-07 3:16 
Hey peeps,

I have a problem i would like help with.

I have created a webhandler i use for displaying images, its ProcessRequest looks like this.

public void ProcessRequest(HttpContext context)
{
HttpResponse response = context.Response;
HttpRequest request = context.Request;
response.ContentType = "image/jpeg";
response.Cache.SetExpires(DateTime.Now.AddDays(7));
response.Cache.SetCacheability(HttpCacheability.Public);
response.BufferOutput = false;

writeSingleImage(Convert.ToInt32(request.QueryString["ImageID"]), Convert.ToInt32(request.QueryString["Size"]), response.OutputStream);
response.End();
}

The writeSingleImage function just retrieves the image frmo the database and writes it out to the response.

No i have made users able to rotate images, but since the webhandler caches images they wont be able to see changes until their cache expires.
So i want to remove a single cached image when users rotate that image. Hov do i do this. All i done to cache the image is what you see in the ProcessRequest above.
Hope somebody have an idea, because i really dont know too much about caching.

-Anders, DK
AnswerRe: Cached WebHandler Pin
Mark J. Miller12-Jan-07 8:44
Mark J. Miller12-Jan-07 8:44 
QuestionStrange problem when downloading a page from ASP.NET 1.1/CMS2002 Pin
Ponzano Paolo12-Jan-07 2:04
Ponzano Paolo12-Jan-07 2:04 
Questionone question Pin
Imran Khan Pathan12-Jan-07 1:47
Imran Khan Pathan12-Jan-07 1:47 
AnswerRe: one question Pin
_AK_12-Jan-07 1:51
_AK_12-Jan-07 1:51 
AnswerRe: one question Pin
ednrgc12-Jan-07 4:16
ednrgc12-Jan-07 4:16 
QuestionScript Error Pin
Sam.M12-Jan-07 1:38
Sam.M12-Jan-07 1:38 
AnswerRe: Script Error Pin
ToddHileHoffer12-Jan-07 2:57
ToddHileHoffer12-Jan-07 2:57 
QuestionCheckBox in GridView Pin
varshavmane12-Jan-07 1:30
varshavmane12-Jan-07 1:30 
AnswerRe: CheckBox in GridView Pin
Sam.M12-Jan-07 1:50
Sam.M12-Jan-07 1:50 
QuestionASP.NET Custom Controls Pin
Andy *M*11-Jan-07 23:48
Andy *M*11-Jan-07 23:48 
AnswerRe: ASP.NET Custom Controls Pin
Paddy Boyd12-Jan-07 0:09
Paddy Boyd12-Jan-07 0:09 
GeneralRe: ASP.NET Custom Controls Pin
Andy *M*12-Jan-07 0:25
Andy *M*12-Jan-07 0:25 
QuestionBack to same position on page Pin
BobsAfro11-Jan-07 23:45
BobsAfro11-Jan-07 23:45 
AnswerRe: Back to same position on page Pin
ToddHileHoffer12-Jan-07 2:59
ToddHileHoffer12-Jan-07 2:59 
AnswerRe: Back to same position on page Pin
marcin.rawicki12-Jan-07 5:16
marcin.rawicki12-Jan-07 5:16 
QuestionSql server session state management Pin
Abhijit Chaubal11-Jan-07 23:06
Abhijit Chaubal11-Jan-07 23:06 
AnswerRe: Sql server session state management Pin
ToddHileHoffer12-Jan-07 3:00
ToddHileHoffer12-Jan-07 3:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.