Click here to Skip to main content
15,116,654 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
if the site has a file with extension ".aspx " i know its using asp.net technology for website development. What if the site extension is ".html"
Can a site developed with .net technology still show a file with ".html".

example: http://www.universalenergy.ca/ON/residential/gas_offer.html





http://www.w3schools.com/aspnet/aspnet_intro.asp This is classic asp i guess
http://www.codeproject.com/Questions/ask.aspx This is .net
Posted
Updated 19-May-11 4:07am
v3
Comments
Torontouser 20-May-11 8:45am
   
Thank you all for your help :)

Yes, you can have a pure html page show you content generated by a aspx page. It's a whacky idea, but it can be done. Using url reqriting, you can even disguise an aspx page as a html page.
   
v2
Comments
Sergey Alexandrovich Kryukov 19-May-11 22:14pm
   
Correct, a 5.
--SA
yeah a site developer with .et can show a file with .html extension..please go to the following link

http://blogs.msdn.com/b/gduthie/archive/2007/03/14/custom-file-extensions-in-asp-net-2-0.aspx[^]
   
Most web servers return information about this in the response headers. Have a look at the links for more information and code examples how to retrieve it:
Web Server Information using .NET[^]

http://www.codegain.com/articles/aspnet/howto/how-to-get-web-server-information-using-net.aspx[^]

Good luck!
   

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