This project is read-only.
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 4:01 AM by csharp2002

comments

webxcraz wrote May 10, 2011 at 11: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 4:01 AM

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

wrote May 11, 2011 at 4:01 AM

wrote Feb 14, 2013 at 3:19 AM

wrote May 16, 2013 at 9:09 AM