Click here to Skip to main content
12,947,250 members (48,954 online)
Rate this:
Please Sign up or sign in to vote.
See more:
What is the mime type for .aspx
Posted 17-Apr-11 23:14pm
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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 )
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
SAKryukov 18-Apr-11 5:42am
Thank you, Sandeep.
SAKryukov 18-Apr-11 5:42am
What do you mean "isn't translated"?
Espen Harlinn 18-Apr-11 17:52pm
My 5 :)
SAKryukov 18-Apr-11 22:21pm
Thank you, Espen.
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

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?
SAKryukov 18-Apr-11 5:41am
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)

    Print Answers RSS
Top Experts
Last 24hrsThis month
OriginalGriff 5,059
CHill60 3,235
Maciej Los 2,538
Jochen Arndt 1,935
ppolymorphe 1,795

Advertise | Privacy | Mobile
Web02 | 2.8.170518.1 | Last Updated 18 Apr 2011
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100