Click here to Skip to main content
15,063,596 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
What is the mime type for .aspx

Wrong question. ".ASPX" does not have a MIME type. This is just a part of file name (and URL).
For example, if the content is HTML, the mime type "text/html", and the .ASPX file from the client part is no different from a regular HTML file.

Sandeep Mewara 18-Apr-11 5:25am
My 5!

I thought so too. Looks like we both posted almost the same answer at same time.
(Though it might happen you disagree with mine! :P )
Thank you, Sandeep.
sampath1750 18-Apr-11 5:29am
I also add mime for aspx is text/html it shows me the html coded section of the file but my code isn't translated at all
What do you mean "isn't translated"?
Espen Harlinn 18-Apr-11 17:52pm
My 5 :)
Sergey Alexandrovich Kryukov 18-Apr-11 22:21pm
Thank you, Espen.
AFAIK, mime type is not defined for .aspx but one can take it as a text/html in a rough manner. An ASPX page streams text/html to the browser.
Sandeep Mewara 18-Apr-11 5:22am
Just wanted to know, why you asked or need it?
I'm pretty much sure you can generate any mime type with ASP.NET, as with other server-side technology.
My 5.
Sandeep Mewara 18-Apr-11 5:47am
Yep! :)
Thanks SA.
Espen Harlinn 18-Apr-11 17:53pm
My 5 :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900