Copied to clipboard

Flag this post as spam?

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

  • Matthew Berner 23 posts 193 karma points
    Jan 09, 2019 @ 21:03
    Matthew Berner

    Registration Snippet question

    I am currently working with registration snippet in Umbraco. I have a question, within the snippet, it says about a redirect Url, I have tried several and got errors. What is a format or what I am missing?

    `registerModel.RedirectUrl`       - Optional. What path to redirect to if registration is successful. 
                                              By default the member will be redirected to the current umbraco page 
                                              unless this is specified.

    This is what says in the code. I tried this format to no avail:

    registerModel.RedirectUrl = "https;//";

    This generates an error msg:

    Error loading Partial View (file: ~/Views/MacroPartials/RegisterMember.cshtml). Exception: System.Web.HttpCompileException (0x80004005): c:\inetpub\wwwroot\aafa\Views\MacroPartials\RegisterMember.cshtml(19): error CS0201: Only assignment, call, increment, decrement, await, and new object expressions can be used as a statement

    Any help would be appreciated. Thanks Matthew Berner

  • Tor Langlo 130 posts 327 karma points
    Jan 10, 2019 @ 06:29
    Tor Langlo

    You have a semicolon in your url. Maybe that’s the problem?


  • Matthew Berner 23 posts 193 karma points
    Jan 10, 2019 @ 16:38
    Matthew Berner

    No I tried that to no avail

  • Elitenet 120 posts 468 karma points
    Jan 12, 2019 @ 14:19

    Where are you setting the RedirectUrl? it works on my computer if I do:

    var registerModel = Members.CreateRegistrationModel();
    registerModel.RedirectUrl = "";
Please Sign in or register to post replies

Write your reply to: