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
I want to redirect to other Umbraco page with model data.
Currently i am just redirecting to other Umbraco page but not with model data.
public ActionResult CNOReplacement(MasterViewModel Model) { ViewBag.TestData = "Testing ViewBag data passing !!"; return RedirectToUmbracoPage(1098); }
Even i have tried by passing viewmodel but that is also not working.
Hi Rahul,
To pass data between different pages in ASP.NET MVC you need to use TempData instead of viewbag.
https://msdn.microsoft.com/en-us/library/dd394711(v=vs.100).aspx
Dave
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Umbraco + MVC page Redirect with data
I want to redirect to other Umbraco page with model data.
Currently i am just redirecting to other Umbraco page but not with model data.
Even i have tried by passing viewmodel but that is also not working.
Hi Rahul,
To pass data between different pages in ASP.NET MVC you need to use TempData instead of viewbag.
https://msdn.microsoft.com/en-us/library/dd394711(v=vs.100).aspx
Dave
is working on a reply...