Copied to clipboard

Flag this post as spam?

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


  • Phillip Turner 98 posts 412 karma points
    Apr 28, 2014 @ 15:32
    Phillip Turner
    0

    Communication from controller to view Umbraco 6.1.6 Razor MVC

    Ok, this is killing me.

    I set ViewData["SomeKey"] = "Some Value", but its always null in the view, if fact, I have tried all the below:

    ViewData["SomeKey"] = "Some Value";
    TempData["SomeKey"] = "Some Value";
    Session["SomeKey"] = "Some Value";
    

    None of the values make it back to the view.

    I am using return CurrentUmbracoPage() to return to the view.

    I am fairly new to MVC and razor, but surely Session would have worked.

    Am I missing some small piece of the puzzle here?

    Advice would really help here!

    Phillip

Please Sign in or register to post replies

Write your reply to:

Draft