【发布时间】:2021-05-06 06:45:07
【问题描述】:
我正在使用 Blazor 服务器端进行开发。
当我将大量单词复制并粘贴到 textarea 时,发生了错误Connection disconnected with error 'Error: Server returned an error on close: Connection closed with an error.'。 p>
<textarea rows="3"
id="textArea1"
@bind-value="data"
@bind-value:event="oninput"
/>
当我复制和粘贴大约 90kb 的数据时发生了错误。但小数据运行良好。
所以我想问你如何增加textarea的限制?或者什么是控制海量数据的最佳方式。
请帮帮我。
【问题讨论】:
-
可能是因为你限制了行数?尝试去掉它或增加
maxlength属性 -
@Sean 我删除了
rows并添加了maxlength,但是两者都不起作用。 -
When I copied and pasted a lot of words to textarea, the error **Connection disconnected with error 'Error: Server returned an error on close: Connection closed with an error.'** was occurred.Blazor 服务器应用构建在 ASP.NET Core SignalR 之上。正如@SuprabhatBiswal 提到的,您可以尝试增加MaximumReceiveMessageSize的值。
标签: javascript html asp.net-core .net-core blazor