Redirect user from login.aspx depending on role?
-
7 มีนาคม 2555 1:02
Hye..
I want to redirect user after login into a specific web page.
For example, when admin login by enter username and password, he will be directed into admin page(admin.master) while supervisor(supervisor.master) and user(user.master) will directed into their page. I have created folder roles contain managesRoles and userAndRoles for admin and supervisor. But I don't know how to redirect into a specific page after they login.
I am using visual studio 2010(vb.net) for web development
Cn anyone help me please..
- ย้ายโดย Shyam NamboodiripadMicrosoft 7 มีนาคม 2555 2:35 This question is unrelated to Microsoft "Roslyn " CTP. Rerouting to a forum where the likelihood of getting an answer is higher. (From:Microsoft "Roslyn" CTP)
ตอบทั้งหมด
-
12 มีนาคม 2555 8:47ผู้ดูแล
Hi, you can add your codes to the "LoggedIn" event of Login control so that you can redirect different users to correct page, please try the method on the following link:
http://forums.asp.net/post/1595861.aspx
- แก้ไขโดย Allen Li - MSFTModerator 12 มีนาคม 2555 8:47
- ทำเครื่องหมายเป็นคำตอบโดย Allen Li - MSFTModerator 15 มีนาคม 2555 7:21