.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Imran Ghani
Sohaib Khalid

Home >> Forum >> ASP.Net >> Post New QuestionBookmark and Share Subscribe to Forum

Authentication/Authorization on HTML pages.

Posted By: Mahesh     Posted Date: March 15, 2011    Points:5   Category :ASP.Net
i am having a website from customer which contains static html pages, he has developed other web site which is in asp.net(2.0) which contains login 'Authentication' now he wants to use old html pages but they are not authenticating when these pages are called from url directly they getting displayed...how to implement authentication on these HTML pages...thanks in advance

Author: Sunil Yadav       [Moderator]      
Posted Date: March 16, 2011     Points: 20   


Here you need to configure .html file extension with aspnet_isapi filter.

by default IIS does not maps the html page request to aspnet_isapi filter.
It process html pages as static content and hence the request does not authenticated.

To configure html handler page request to aspnet_isapi follow the below kb article.


Hope this helps.

Post Reply

You must Sign In To post reply
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend