Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Hassan 79 posts 264 karma points
    Oct 22, 2016 @ 08:05
    Hassan
    0

    How to use "@using (Html.BeginUmbracoForm)" to redirect to an umbraco page?

    Hi.

    I created a partial view as login page with login snippet and this is generated tamplate:

    enter image description here

    When a member login successfully with login page, he is stay on login page!

    How can I redirect a member to a specific page after login?

    With thanks.

  • Dennis Aaen 4500 posts 18255 karma points admin hq c-trib
    Oct 22, 2016 @ 11:41
    Dennis Aaen
    0

    Hi Hassan,

    Try to have a look at this blogpost on how the build a protected area on your website and how to decide which page, the user should be on when he or she are logged in:

    http://bit.ly/1g79eXP

    Hope this helps,

    /Dennis

  • asad 39 posts 113 karma points
    Oct 22, 2016 @ 20:25
    asad
    0

    Hi Hassan,

    You can handle this on your server end.If member successfully login then you can redirect it to a specific page like

    1.Response.Redirect("/desirepage"); 2. return RedirectToUmbracoPage(pass umbraco page id)

    Also yo can do one other thing as well. Oncy your member successfully login then you can add ViewBag.Success = "any message.Which we just want to compare";

    @if (ViewBag.Success != null && ViewBag.Success=="any message.Which we just want to compare") { Response.Redirect("Required Page") }

Please Sign in or register to post replies

Write your reply to:

Draft