I have an ActionResult return type inside my Controller which executes the default Index action.
public **ActionResult** Index(int _page, string **tabIdx**)
if (tabIdx == null)
**actionResult = View("Index");**
What I need to do is to simply pass a querystring value for the tabIdx field in the above boldfaced line of code.
Something like View("Index") with a querystirng value appened to it.
How can I accomplish this?
You will have to use
RedirectToAction. The URL already is set in stone after the request.
However, there might be a way to pass that value somewhere else so that it can be used without a redirect.