JoshBerke
JoshBerke

Reputation: 67108

Max limit for a single form field?

I am running into a randomly occuring issue, and it looks like either there is a bug in the third party control we are using or the size of a form field is limited. I've seen there is a limit in classic asp http://support.microsoft.com/default.aspx?scid=kb;EN;q273482 but is there a limit in .net?

I believe if we reached the max limit setting on the entire post body that asp.net would generate an error instead of truncating the form field. I know most likely this an error in the third party control but I want to vette all other possible options. Essentially what is occuring is they are posting a url encoded xml msg in the body and the xml is getting truncated sometimes.

Thanks in advance.

Upvotes: 1

Views: 882

Answers (1)

Russ Bradberry
Russ Bradberry

Reputation: 10865

check to see that there isn't a limit in the database table or stored procedure. if there isn't a limit there then maybe the parameter variable is declared with a limit in the .net code. the default maxRequestLength set in the machine.config is 4096 which should accommodate any posting in a form

there shouldn't be any limits because i have projects where people post upwards of 200,000 characters to a single form field.

Upvotes: 1

Related Questions