Specifying maxlength for multiline textbox

后端 未结 19 2032
感动是毒
感动是毒 2020-11-27 15:21

I\'m trying to use asp:


I want a way to spe

19条回答
  •  渐次进展
    2020-11-27 16:07

    Here's how we did it (keeps all code in one place):

    
    <% TextBox1.Attributes["maxlength"] = "1000"; %>
    

    Just in case someone still using webforms in 2018..

提交回复
热议问题