G
grz01
Hi,
I have written a webpage, showpict.aspx,
in C# that will fetch a jpg-picture from a database
and display it thru a html-tag like:
<img src="showpict.aspx?id=23">
where the 'id' parameter tells what picture from the
db to display.
Problem is, if the user e.g. rightclicks the picture
in the web-brower, then does 'Save Picture as...'
the suggested file-extension is wrong.
IE6 will suggest the filename: untitled.bmp
while Firefox simply suggests: showpict.aspx.
Q: How can I get the browser to suggest a name ending with .jpg?
I have seen this work as desired on other sites...
Is there a http-header to do this trick or what?
Thanks,
I have written a webpage, showpict.aspx,
in C# that will fetch a jpg-picture from a database
and display it thru a html-tag like:
<img src="showpict.aspx?id=23">
where the 'id' parameter tells what picture from the
db to display.
Problem is, if the user e.g. rightclicks the picture
in the web-brower, then does 'Save Picture as...'
the suggested file-extension is wrong.
IE6 will suggest the filename: untitled.bmp
while Firefox simply suggests: showpict.aspx.
Q: How can I get the browser to suggest a name ending with .jpg?
I have seen this work as desired on other sites...
Is there a http-header to do this trick or what?
Thanks,