Click here to Skip to main content
12,357,409 members (70,861 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: ASP.NET
Hi
What is the mime type for .aspx
Posted 17-Apr-11 23:14pm
Rate this: bad
 
good
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.

—SA
  Permalink  
Comments
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 )
SAKryukov 18-Apr-11 5:42am
   
Thank you, Sandeep.
--SA
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 asp.net code isn't translated at all
SAKryukov 18-Apr-11 5:42am
   
What do you mean "isn't translated"?
--SA
Espen Harlinn 18-Apr-11 17:52pm
   
My 5 :)
SAKryukov 18-Apr-11 22:21pm
   
Thank you, Espen.
--SA
Rate this: bad
 
good
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.
  Permalink  
v2
Comments
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.
--SA
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


Advertise | Privacy | Mobile
Web01 | 2.8.160621.1 | Last Updated 18 Apr 2011
Copyright © CodeProject, 1999-2016
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