如何在asp.net中使用多行文本框 [英] how to use multiline text box in asp.net
本文介绍了如何在asp.net中使用多行文本框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个输入控件文本框
我想用作地址的多行texbox
但它只在一行中写文本.
代码是-
i have a input control textbox
i want to use as multiline texbox for address
but it write text in a single line.
code is-
<input type=''text'' style=''height: 40px;'' class=''unwatermarked'' id=''txtAddress2_" & i & "'' maxlength=''150'' onkeydown=''onKeyDown(this)'' size=''50'' />"
推荐答案
您可以将taxtarea用于多行
You Can use taxtarea for multiline
<textarea rows="3" cols="20">
This is my text area.
</textarea>
您可以在HTML控件中使用<textarea></textarea>
.
You can use <textarea></textarea>
in Html control.
关于ASP.NET文本框 [ TextBoxMode [^ ]
W3schools示例 [
What about ASP.NET Textbox[^]? Give the value MultiLine for the property TextBoxMode[^]
W3schools example[^] for the textbox
这篇关于如何在asp.net中使用多行文本框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文