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

  • Question

  • User-1324341337 posted


    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!!


    Friday, June 17, 2016 10:04 AM


  • User-646145796 posted


    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.


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