Issue with hidden input and very large values in HTML and ASP.NET MVC 3 Razor

后端 未结 6 2038
天涯浪人
天涯浪人 2021-01-19 03:26

Since there appears to be a 1024 character limit for hidden input values, what does everyone do for values in excess of this limit? Can a hidden file input (

6条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-19 04:02

    1024 is the limit of any attribute on an HTML element in HTML 3 and below. To get around it, you could use a text area where you put the value in between the tags.

    Since you have so much data, you might be better off implementing some sort of paging on the server side and using AJAX to make a request to get the next set of data.

提交回复
热议问题