Skip to main content
edited tags
Link
tereško
  • 58.5k
  • 26
  • 100
  • 151
Revised title and re-tagged.
Source Link

How do you RedirectToActionredirect to a page using the POST instead of GETverb?

When you call RedirectToAction within a controller, it automatically redirects using an HTTP GET. How How do I explicitly tell it to use an HTTP POST?

I have an action that accepts both GET and POST requests, and I want to be able to RedirectToAction using a POST POST and send it some values.

Like this:

this.RedirectToAction( "actionname", new RouteValueDictionary(new { someValue = 2, anotherValue = "text" }) ); 

I want the someValue and anotherValue values to be sent using an HTTP POST instead of a GET. Does anyone know how to do this?

How do you RedirectToAction using POST instead of GET?

When you call RedirectToAction within a controller, it automatically redirects using an HTTP GET. How do I explicitly tell it to use an HTTP POST?

I have an action that accepts both GET and POST requests, and I want to be able to RedirectToAction using a POST and send it some values.

Like this:

this.RedirectToAction( "actionname", new RouteValueDictionary(new { someValue = 2, anotherValue = "text" }) ); 

I want the someValue and anotherValue values to be sent using an HTTP POST instead of a GET. Does anyone know how to do this?

How do you redirect to a page using the POST verb?

When you call RedirectToAction within a controller, it automatically redirects using an HTTP GET. How do I explicitly tell it to use an HTTP POST?

I have an action that accepts both GET and POST requests, and I want to be able to RedirectToAction using POST and send it some values.

Like this:

this.RedirectToAction( "actionname", new RouteValueDictionary(new { someValue = 2, anotherValue = "text" }) ); 

I want the someValue and anotherValue values to be sent using an HTTP POST instead of a GET. Does anyone know how to do this?

added 39 characters in body; edited tags
Source Link
Robert Koritnik
  • 105.3k
  • 57
  • 286
  • 415

When you call RedirectToActionRedirectToAction within a Controllercontroller, it automatically redirects using an HTTP GET. How do I explicitly tell it to use an HTTP POST?

I have an Actionaction that accepts both GET and POST requests, and I want to be able to RedirectToActionRedirectToAction using a POST and send it some values.

Like this:

this.RedirectToAction("actionname", new RouteValueDictionary(new { someValue = 2, anotherValue = "text" }));

this.RedirectToAction( "actionname", new RouteValueDictionary(new { someValue = 2, anotherValue = "text" }) ); 

I want the someValuesomeValue and anotherValueanotherValue values to be sent using an HTTP POST instead of a GET. Does anyone know how to do this?

When you call RedirectToAction within a Controller, it automatically redirects using an HTTP GET. How do I explicitly tell it to use an HTTP POST?

I have an Action that accepts both GET and POST requests, and I want to be able to RedirectToAction using a POST and send it some values.

Like this:

this.RedirectToAction("actionname", new RouteValueDictionary(new { someValue = 2, anotherValue = "text" }));

I want the someValue and anotherValue values to be sent using an HTTP POST instead of a GET. Does anyone know how to do this?

When you call RedirectToAction within a controller, it automatically redirects using an HTTP GET. How do I explicitly tell it to use an HTTP POST?

I have an action that accepts both GET and POST requests, and I want to be able to RedirectToAction using a POST and send it some values.

Like this:

this.RedirectToAction( "actionname", new RouteValueDictionary(new { someValue = 2, anotherValue = "text" }) ); 

I want the someValue and anotherValue values to be sent using an HTTP POST instead of a GET. Does anyone know how to do this?

Rollback to Revision 2
Link
John Topley
  • 115.8k
  • 48
  • 200
  • 241
Loading
Rollback to Revision 1
Link
Chris Pietschmann
  • 29.9k
  • 36
  • 124
  • 167
Loading
Correcting typo in title
Link
John Topley
  • 115.8k
  • 48
  • 200
  • 241
Loading
Source Link
Chris Pietschmann
  • 29.9k
  • 36
  • 124
  • 167
Loading