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 21 posts 191 karma points
    1 week ago
    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 83 posts 203 karma points
    7 days ago
    Tor Langlo
    0

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

    -Tor

  • Matthew Berner 21 posts 191 karma points
    6 days ago
    Matthew Berner
    0

    No I tried that to no avail

  • Elitenet 112 posts 446 karma points
    4 days ago
    Elitenet
    0

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

    var registerModel = Members.CreateRegistrationModel();
    registerModel.RedirectUrl = "https://www.aafa.org/";
    
Please Sign in or register to post replies

Write your reply to:

Draft