|
-
Jul 26th, 2007, 11:23 AM
#1
Thread Starter
Hyperactive Member
[RESOLVED] [2005] Firefox - Image - Save as
Using a handler to display image.
<img alt="" src="Captcha.ashx" />
In Firefox, when a web page is displayed and right-click performed to save image, this is the filename given:
Captcha.ashx.jpg
How do I get it to display "untitled" as demonstrated in Internet Explorer and not the name of the handler?
-MPippz
-
Jul 26th, 2007, 11:32 AM
#2
Re: [2005] Firefox - Image - Save as
<img alt="" src="Captcha.ashx" title="" />
-
Jul 26th, 2007, 11:45 AM
#3
Thread Starter
Hyperactive Member
Re: [2005] Firefox - Image - Save as
Hi Timeshifter,
Although I truly do appreciate you sending a response, I'm still very much in the dark about what you're trying to convey to me.
-MPippz
-
Jul 26th, 2007, 11:47 AM
#4
Re: [2005] Firefox - Image - Save as
The title property of an image. It's also what you see when you hover over an image.
-
Jul 26th, 2007, 12:39 PM
#5
Thread Starter
Hyperactive Member
Re: [2005] Firefox - Image - Save as
No dice.
The name of the handler page is still being displayed.
"Captcha.aspx.jpg"
-
Jul 27th, 2007, 10:22 AM
#6
Re: [2005] Firefox - Image - Save as
You have to do this in your .ashx.
Response.AddHeader("Content-Disposition", "filename=untitled.jpg");
-
Jul 27th, 2007, 03:06 PM
#7
Thread Starter
Hyperactive Member
Re: [2005] Firefox - Image - Save as
Hey Mendhak,
Thanks for the response.
It's totally frustrating trying to write code that is compliant and compatible with all the browsers out there. Makes my head spin sometimes.
Thread resolved.
-MPippz
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|