如题,从数据库读值到TextBox中怎样让TextBox自动换行?
<asp:TextBox ID="TextBox2" runat="server" Width="315px" style= "word-wrap:normal;word-break:break-all;" Font-Names="Arial" TextMode="MultiLine" MaxLength="100"></asp:TextBox>
这样设置了还是不行,请大侠们赐教!
------解决方案--------------------------------------------------------
- HTML code
<asp:textbox runat="server" Height="90px" TextMode="MultiLine">dsafdsfdsfdsfdfdsdfdsfdsfdsafdsfdsfds</asp:textbox>
------解决方案--------------------------------------------------------
设置TextBox控件的TextMode属性为MultiLine
或者干脆用html控件textarea