如何在窗口认证Web应用程序上检查数据库条件? [英] how to check database condition on window authentication web application ?

查看:71
本文介绍了如何在窗口认证Web应用程序上检查数据库条件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我使用asp.net mvc4开发了一个网络应用程序,我们使用基于窗口的身份验证。这工作正常,现在我们为每个用户提供不同的用户类型,例如admin /普通用户。



现在我们想要在首次打开网站时根据角色将这些用户重定向到不同的页面。当前启动页面在routeconfig.cs文件中设置。用户角色保存在数据库中。

Hi all,

i have developed one web appliation using asp.net mvc4 and we are usign window based authentication. this is working fine now we have different user types for each users like admin/normal user.

now we want to redirect these user to different pages according to role when they first open the site. currently startup page is set on routeconfig.cs file. user role is saved in database.

推荐答案

试试这个



http:// blogs.msdn.com/b/rickandy/archive/2012/03/23/securing-your-asp-net-mvc-4-app-and-the-new-allowanonymous-attribute.aspx [<一个HREF =http://blogs.msdn.com/b/rickandy/archive/2012/03/23/securing-your-asp-net-mvc-4-app-and-the-new-allowanonymous-attribute.aspx target =_ blanktitle =New Window> ^ ]


这篇关于如何在窗口认证Web应用程序上检查数据库条件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆