how to add querystring values with RedirectToAction method?

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”.

Leave a Comment