Copied to clipboard

Flag this post as spam?

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


  • Shane 13 posts 96 karma points
    Jun 16, 2015 @ 20:02
    Shane
    0

    return CurrentUmbracoPage() just shows blank page

    Hi,

    I have a form which is being rendered with:

    @using (Html.BeginUmbracoForm<AccountController>("RegisterAccount", FormMethod.Post, new { enctype = "multipart/form-data"}))
    {    
    ........
    }
    

    If the model has errors I'm using:

    return CurrentUmbracoPage()
    

    The problem is that when returned the page is empty. It's still within the website template but there is no trace of the form at all and there are no errors, just blank. What's stranger is this very form was working a few days ago and now I can't figure out what's gone wrong.

    Can anyone think of anything I can check? I'm at a loss because there are no errors I can even debug!

    Thanks

  • Ste 14 posts 35 karma points
    Jun 18, 2015 @ 15:54
    Ste
    0

    Hi,

    Have your tried changing the line to just return;? It looks like you're in a view already, so that should stop it from doing any more page logic, and hopefully your validation information will still be intact.

Please Sign in or register to post replies

Write your reply to:

Draft