samselva66
New Member
I have an asp.net application and within this application I have a directory of .htm files. I am using forms authentication, is there a way I can make the forms authentication work on the directory of .htm files. I am trying to prevent a direct link to any of the .htm files. They must login in first.Unfortunately, I don't think it's possible. The problem with forms authentication is that it only applies to .NET apps. When the user requests the .htm from the server, the .NET framework does not handle the request, therefore, it doesn't check the web.config and doesn't authenticate the user. If you changed the extensions to .aspx, it should work... give it a try