Firefox won't load aspx pages

I created an aspx page to load an image.  It works great in IE 7 and 8, but when I try to open the page in Firefox, it asks "What should Firefox do with this file?".  Full dialog box is attached.
If I tell it to open in Firefox and it asks the same question over and over, but If I tell it to open in IE, it opens fine.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

The site you listed is not sending a Content-Type in the HTTP header ( it should be sending text/html or similar so firefox will render it ). Since firefox has no content type it tries to guess it from the filename, and comes to the conclusion that it is downloading an ASPX *source* file.

Anyway to fix this tell Firefox ( and you whole computer system ) that it should render ASPX files as HTML. Add "text/html aspx" to a file named "~/.mime.types". If you only want firefox to have these ( technically wrong ) mime type changes then put it in "~/.mime.types.firefox" and change "helpers.private_mime_types_file" in "about:config" to that new file.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
roachpatrolAuthor Commented:
If that is the case, this would only fix my computer.  It won't help other people who view the site, right?  Is there a way to embed the mime type in the page so Firefox can read it without modifying the client?  or does Firefox just not support aspx?  I created the page so I can modify it as needed.

are you loading the image by redirecting it to the image, or using like Response.BinaryWrite ?

if you are using BinaryWrite just add this:

    Response.ContentType = "image/jpeg";

and it should properly load the image
Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

roachpatrolAuthor Commented:
I'm using response.writefile and am already setting the content type. I'll try the binarywrite tonight, but I think the problem is opening the page, before the response.* is even called.
Try puting..

Response.Contentype = "txt/html"
roachpatrolAuthor Commented:
Evidently, I forgot to put the type in the header of the aspx file.  Not really sure how that happened, but IE must have just assumed it was asp and went about its business.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Browsers

From novice to tech pro — start learning today.