Re: hidden ASPX behind HTML

From: Shaul Feldman (sfeldman_at_writeme.com)
Date: 05/30/04


Date: Sun, 30 May 2004 18:44:24 +0200

Thanks, the only problem is when I add the new setting for HTML, the OK
button is greyed out :(
What can be done?

-- 
With the best wishes,
          Shaul Feldman
"Teemu Keiski" <joteke@aspalliance.com> wrote in message
news:uSmafJlREHA.3944@tk2msftngp13.phx.gbl...
> Hi,
>
> in IIS add mapping for .html/htm extensions to be processed by
> aspnet_isapi.dll (see the setting for .aspx extension to get the idea).
This
> makes IIS to forward the file processing to ASp.NET. After that you would
> need to map the .html extension in ASp.NET config files for proper
> HttpHandler (so that ASp.NET itself figures that it needs handling and
isn't
> static content). In machine.config aspx extension is mapped as follows:
>
> <httpHandlers>
>  <add verb="*" path="*.aspx" type="System.Web.UI.PageHandlerFactory" />
> </httpHandlers>
>
> And you'd of course add a setting such that path is "*.html" and same
> repeated for "*.htm" so that these file types are processed as normal aspx
> pages.
>
> Hope this helps.
>
> -- 
> Teemu Keiski
> MCP, Microsoft MVP (ASP.NET), AspInsiders member
> ASP.NET Forum Moderator, AspAlliance Columnist
> http://blogs.aspadvice.com/joteke
>
>
>
> "Shaul Feldman" <sfeldman@writeme.com> wrote in message
> news:uLXYa4jREHA.2408@tk2msftngp13.phx.gbl...
> > Hello,
> > the question is how can I masquerade ASPX files behind HTML extension?
> > Thank you in advance.
> > -- 
> > With the best wishes,
> >           Shaul Feldman
> >
> >
>
>

Loading