ASP.NET MVC: Pass parameters when redirecting from to another action(jonkruger.com)
submitted by
david_holland(605) 2 years, 10 months ago
In ASP.NET MVC, it’s common to have a situation where you post to one controller action and then redirect to another controller action. Let’s say that you want to pass values from the first controller method to the other. The problem is that in out-of-the-box ASP.NET MVC, there is no way to redirect to another action and pass a parameter into the action that you are redirecting to. Here is one way you can get around this problem.
|category: MVC
|Views: 475
tags:
MVC another
Everyones tags:
Your Tags: