How do I rewrite a file name into the browser using a httphandler - is it possible?
Posted
by Chev
on Stack Overflow
See other posts from Stack Overflow
or by Chev
Published on 2010-03-20T11:13:11Z
Indexed on
2010/03/20
11:21 UTC
Read the original article
Hit count: 319
httphandler
|ASP.NET
I have a httphandler that is fitred for all .png files. I would to be able to rewite the name of the file into the html. Is this possible? So if test.png comes into the handler I want to write test.png?V=1
So far I have found the following:
context.Response.AddHeader("content-disposition", "inline; filename=" + context.Request.FilePath + "?V=1");
© Stack Overflow or respective owner