0

We have a few HTML pages on our ASP.Net that we need redirect for non-logged in users only. We were able to get this working under IIS6 by using an event in the global.asax, but with IIS7 & integrated pipeline, this event isn't firing.

Any ideas on how to accomplish this?

Mr Smith
  • 3,318
  • 9
  • 47
  • 85
  • "*We were able to get this working under IIS6 by using an **event** in the global.asax*". Can you show the event that was working. – Nick Jan 24 '14 at 00:57
  • This works in Application_BeginRequest when the site is run in the VS.Net web server. But I'm thinking when the site is run on IIS7 on the server the html pages are being served by IIS before this event runs. Maybe this has the answer: http://stackoverflow.com/questions/3589020/how-to-do-forms-authentication-on-purely-html-pages-using-asp-net – Mr Smith Jan 24 '14 at 01:55

1 Answers1

0

This worked:

How to do Forms Authentication on purely HTML pages using ASP.NET?

Once I added those config entries, the Application_BeginRequest fired for HTML pages when the site was running in IIS7 Integrated Pipeline mode

Community
  • 1
  • 1
Mr Smith
  • 3,318
  • 9
  • 47
  • 85