locked
ReturnUrl - returning to any page, not just those that require authentication RRS feed

  • Question

  • User379720387 posted

    The ReturnUrl functionality works great if the page you are requesting requires an Authenticated user.

    What can I do if I want to return to a page that does not require an Authenticated user?

    ReturnUrl does not work in that case.

    TIA

    Robert

    Monday, July 8, 2013 12:35 PM

Answers

  • User895691971 posted

    ReturnUrl will just redirect the user to the page he was on after he logs in successfully! If there is no authentication, then you can simply redirect him via

    Response.Redirect("~/"); // URL here in brackets

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, July 8, 2013 1:00 PM