简体   繁体   中英

how can i get HttpContext.Current.Request of more than 1000 html controls value?

I have more than 1000 controls in a html web page. when i submit the page i get only values of 1000 controls

NameValueCollection nv = (NameValueCollection) HttpContext.Current.Request.Form

nv.count is 1000 , how can i get HttpContext.Current.Request of more than 1000 html controls value ?

Your webserver has a limit on how large requests it will allow.

If you are using IIS you can check out http://www.iis.net/configreference/system.webserver/security/requestfiltering/requestlimits

But i would suggest using some other technique to post your data, maybe AJAX

What the - how can you sensibly have 1000+ input controls? Smells like "one page to rule them all". THAT is your problem. You wont get around that - likely the browser does not publish them. Your best bet i not to submit a webpage, but to use AJAX and construct some JSON payload with all the values.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM