Parse .HTML as .ASPX

 
Post new topic   Reply to topic    Aprelium Forum Index -> ASP.NET
View previous topic :: View next topic  
Author Message
vinhboy
-


Joined: 03 Jun 2007
Posts: 1

PostPosted: Sun Jun 03, 2007 8:27 am    Post subject: Parse .HTML as .ASPX Reply with quote

I have a .ASPX project with .HTML extensions. If I rename all the .HTML to .ASPX then everything works fine, but I would like to continue using my .HTML extensions.

I added the .HTML extension to the asp.net control panel, but it still does not parse the .HTML files as .ASPX.

I am guessing that .HTML files are read before they are sent to ASP.NET for processing...

I also tried removing the html, htm from the MIME type, but nothing works. Please help. Thanks!

Btw, is there any easier way to get ASP.NET on Windows Home? Thanks in advance.
Back to top View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Wed Jun 27, 2007 11:56 pm    Post subject: Re: Parse .HTML as .ASPX Reply with quote

vinhboy,

You'll have to tell your ASP.NET application too that .html files contain code. This is done by editing its Web.config and by adding:

Code:
<add verb="*" path="*.html"
       type="System.Web.UI.PageHandlerFactory" />
[/code]
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> ASP.NET All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group