Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

mvc return view with query string

The answer is taken from stackoverflow :

I actually don't understand why you need query string.

Without it you can do like this:

return View("ViewName", new { code = "whatever you need" });
If you still need it one of possible ways RedirectToAction method:

return RedirectToAction("ViewName", new { code = "whatever you need" });
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #mvc #return #view #query #string
ADD COMMENT
Topic
Name
7+4 =