locked
Asp.net redirect to page based Azure AD user RRS feed

  • Question

  • User-1324341337 posted

    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

    Friday, June 17, 2016 10:04 AM

Answers

  • User-646145796 posted

    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

    User.Identity.Name!

    to get the user name. Hope it helps, if misunderstanding, please feel free to let me know.

    Regards

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, June 20, 2016 1:27 AM