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 47 posts 327 karma points
    Jan 09, 2019 @ 21:03
    Matthew Berner
    0

    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;//www.aafa.org/";
    

    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 191 posts 554 karma points
    Jan 10, 2019 @ 06:29
    Tor Langlo
    0

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

    -Tor

  • Matthew Berner 47 posts 327 karma points
    Jan 10, 2019 @ 16:38
    Matthew Berner
    0

    No I tried that to no avail

  • pbl_dk 150 posts 551 karma points
    Jan 12, 2019 @ 14:19
    pbl_dk
    100

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

    var registerModel = Members.CreateRegistrationModel();
    registerModel.RedirectUrl = "https://www.aafa.org/";
    
  • Matthew Berner 47 posts 327 karma points
    Jan 29, 2021 @ 15:51
    Matthew Berner
    0

    that did work Thanks

Please Sign in or register to post replies

Write your reply to:

Draft