Try using TempData. It is like a single-shot session object. You put values you want into TempData, immediately redirect and get them out. There is a good writeup here: http://blogs.teamb.com/craigstuntz/2009/01/23/37947/
More Related Contents:
- RedirectToAction with parameter
- html dropdownlist to controller
- How to display indirect data in Jqgrid
- Getting full URL of action in ASP.NET MVC [duplicate]
- How to RedirectToAction in ASP.NET MVC without losing request data
- Impersonation in ASP.NET MVC
- Putting HTML inside Html.ActionLink(), plus No Link Text?
- Get error message if ModelState.IsValid fails?
- The entity type ‘Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin’ requires a key to be defined
- Unit testing ASP.Net MVC Authorize attribute to verify redirect to login page
- How can I change IIS Express port for a site
- CustomAttribute reflects html attribute MVC5
- Child actions are not allowed to perform redirect actions, after setting the site on HTTPS [duplicate]
- Ignoring a field during .NET JSON serialization; similar to [XmlIgnore]?
- How to declare a local variable in Razor?
- how to redirect to external url from c# controller
- How to mock Controller.User using moq
- Storing more information using FormsAuthentication.SetAuthCookie
- MVC HTML Helpers and Lambda Expressions
- Pulling a View from a database rather than a file
- How to edit multiple models in a single Razor View
- Conditional html attribute with Html Helper
- How to add and get Header values in WebApi
- Web API in MVC solution in separate project
- Html.ActionLink cannot be dynamically dispatched
- Exception is: InvalidOperationException – The current type, is an interface and cannot be constructed. Are you missing a type mapping?
- MVC4 – Bundling does not work when optimizations are set to true
- ASP.NEt MVC using Web API to return a Razor view
- Using a wwwroot folder (ASP.NET Core style) in ASP.NET 4.5 project
- There is no ViewData item of type ‘IEnumerable’ that has the key country