1

Closed

AjaxFormHelper always uses method=post

description

Line 103 of AjaxForm/AjaxFormExtensions.cs is hard coded to use post for the form method.
Currently using this:
builder.MergeAttribute("method", "post");
 
should be:
builder.MergeAttribute("method", options.HttpMethod ?? "post");
Closed May 11, 2011 at 3:01 AM by csharp2002

comments

webxcraz wrote May 10, 2011 at 10:21 PM

Additionally, line 128 is also hard coded to:
.Append("type:\"POST\",")

should be:
.Append("type:\"" + options.HttpMethod + "\",")

I suspect that there are other places that has the POST method hard coded.

csharp2002 wrote May 11, 2011 at 3:01 AM

Oh yes, so a stupid bug. I have fixed it.

wrote May 11, 2011 at 3:01 AM

wrote Feb 14, 2013 at 2:19 AM

wrote May 16, 2013 at 8:09 AM