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

    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 83 posts 203 karma points
    7 days ago
    Tor Langlo

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


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

    No I tried that to no avail

  • Elitenet 112 posts 446 karma points
    4 days ago

    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: