开发者

how to apply authentication

开发者 https://www.devze.com 2022-12-10 13:05 出处:网络
Can any one tell me how to solve the following scenario in Asp.net application. I have an asp.net application which has 3 pages.Some user should allow to view some pages.For ex, user 1 should see pag

Can any one tell me how to solve the following scenario in Asp.net application.

I have an asp.net application which has 3 pages.Some user should allow to view some pages.For ex, user 1 should see page 1 but not page 2. In web.config file, under App_settings, I have a key-value(user1 - 0) if the value is 0 then he should allow to view the p开发者_如何学Cage other wise, he should not allow to view the page.

So, the problem is based on app_setting value, I need to restrict or allow the user.


I'd stop using the AppSetting and use the membership/role provider

http://odetocode.com/articles/427.aspx

0

精彩评论

暂无评论...
验证码 换一张
取 消