Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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:
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
is working on a reply...