开发者

What is the maximum amount of characters for an ASP.NET textbox with MultiLine TextMode enabled?

开发者 https://www.devze.com 2023-04-07 12:39 出处:网络
I know that the MaxLength property doesn\'t apply to System.Web.UI.WebControls.Textbox control in MultiLine mode. But what is the maximum amount of characters I can type in the textbox?

I know that the MaxLength property doesn't apply to System.Web.UI.WebControls.Textbox control in MultiLine mode. But what is the maximum amount of characters I can type in the textbox?

It seems to be 1000 characters, but I can't find this documented anywhere.

开发者_如何学C

I am not asking on how to limit the number of characters in the textbox control.

Thanks.


There is no upper limit to the number of characters in a WebControls.Textbox in multiline mode. The only limits are total post data from a form and that depends on your web-servers set-up (I presume IIS) which I think is about 2mb by default in IIS but don't quote me on that.

What is happening when you try to type beyond 1000 charatcters?


There is no limit to the size of input, but if you use HTTP GET method to submit, your data will be encoded and appended to the submit URL. URLs, depending on a browser, have limitation of about 2000 characters. Try using HTTP PUT to submit the data in which case the payload is added to the HTTP header of the request which has no size limitations. Check method property of your FORM element.

0

精彩评论

暂无评论...
验证码 换一张
取 消