Forms Authentication and HTML pages

J

John

I am using forms authentication for a website. I plan to use some static
html pages (generated with a tool) on the site as well. I would like the
html pages to be secured using the forms authentication.

Currently the html pages can be called and they will bypass the forms
authentication page.

Does anyone know if html pages can be secured with forms based
authentication? Is there a web.config setting for this?

John
 
T

Teemu Keiski

Hi,

you would need to put HTML pages to be served by ASP.NET. This goes via
site's configuration in IIS by associating .html extension with
aspnet_isapi.dll. After that you can specify permissions for them as you
would for normal ASP.NEt page.

--
Teemu Keiski
MCP, Microsoft MVP (ASP.NET), AspInsiders member
ASP.NET Forum Moderator, AspAlliance Columnist


I am using forms authentication for a website. I plan to use some static
html pages (generated with a tool) on the site as well. I would like the
html pages to be secured using the forms authentication.

Currently the html pages can be called and they will bypass the forms
authentication page.

Does anyone know if html pages can be secured with forms based
authentication? Is there a web.config setting for this?

John
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top