使用asp:按钮,但不得不切换到
<input id="SubmitComments" type="button"
在屏幕上向btn添加文本的属性是什么。类似于asp:button 的"text"属性
另外:我可以使用什么来代替TextMode="MultiLine"rows=5?Ta
您可以将Html中的按钮用作
<input type="button" value="Click Here" /> // value= Text to show
提交按钮
<input type="submit" value="Click Here to Submit" />
多行文本框
<textarea rows="10" cols="25" /> // can define rows and columns
对按钮的文本使用value='your text'
属性。
<input id='SubmitComments' name='SubmitComments' type='button' value='your text'/>
至于多行,我认为这是一个文本框。按钮听不到多行。
使用textarea
元素进行多行文本输入。
<textarea id='yourTextBoxName' name='yourTextBoxName' rows='5' />
<input type="submit" value="Submit">
使用Value
属性将文本添加到输入类型按钮