Click here to Skip to main content
16,018,264 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I want to implement purely html in my intranet web server.
And I want only those users that I'd add in the control panel user administration would access this html website.

But when I try 1 user that is not in my list to access this website, it open the website.

What should I do to restrict this user?

I don't have problem with my other aspx pages because it restricts user not in my list but in html it does not restrict the access.


Thanks,

Hernan Cabrera
Posted

1 solution

Hi,

Please have a look at the technique given in below link,

http://geekswithblogs.net/SanjayU/archive/2009/04/17/using-forms-authentication-with-html-pages-or-really-any-file-type.aspx[^]

Although i have never tried this but it looks promising.

And other solution is to create your ASPX page with One Panel only and inside that panel you can display your html pages. As you said you can restrict user on ASPX, so that will be achieved. But don't know if that idea fit in your scenario.

Hope this helps you,
Thanks
-Amit Gajjar
 
Share this answer
 
v2
Comments
Hernan K. Cabrera 2-Sep-12 10:27am    
Amit,

It works. Great link...

Thanks very much,

Enan
AmitGajjar 2-Sep-12 23:53pm    
Your welcome Enan.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900