Hi
in asp.net-mvc, I am using RedirectToAction("myActionName");
I want to pass some values via the querystring, how do I do that?
Hi
in asp.net-mvc, I am using RedirectToAction("myActionName");
I want to pass some values via the querystring, how do I do that?
Any values that are passed that aren't part of the route will be used as querystring parameters:
return this.RedirectToAction
("myActionName", new { value1 = "queryStringValue1" });
Would return:
/controller/myActionName?value1=queryStringValue1
Assuming there's no route parameter named "value1".