I have asp.net web forms project with Azure AD authentication, i have two froms webfrom1.aspx and webform2.aspx in my project
now i want that if user it@2paf.onmicrosoft.com login then automatically redirect to webform1.aspx or if user finance@2paf.onmicrosoft.com login then automatically redirect to webform2.aspx
If you want to redirect the web page via user, we only need to get user name then do some action according with the user name. In web application, when logged, we can use
User.Identity.Name!
to get the user name. Hope it helps, if misunderstanding, please feel free to let me know.
Regards
Jambor
MSDN Community Support
Please remember to "Mark as Answer" the responses that resolved your issue.
None
0 Points
2 Posts
Asp.net redirect to page based Azure AD user
Jun 17, 2016 10:04 AM|naqibfaeq|LINK
Hello
I have asp.net web forms project with Azure AD authentication, i have two froms webfrom1.aspx and webform2.aspx in my project
now i want that if user it@2paf.onmicrosoft.com login then automatically redirect to webform1.aspx or if user finance@2paf.onmicrosoft.com login then automatically redirect to webform2.aspx
please help me!!
Thanks
Contributor
3315 Points
403 Posts
Re: Asp.net redirect to page based Azure AD user
Jun 20, 2016 01:27 AM|Jamobor yao - MSFT|LINK
Hi,
If you want to redirect the web page via user, we only need to get user name then do some action according with the user name. In web application, when logged, we can use
to get the user name. Hope it helps, if misunderstanding, please feel free to let me know.
Regards
MSDN Community Support
Please remember to "Mark as Answer" the responses that resolved your issue.