如何在ASP.NET中获取HTML文本框的值 [英] How to get HTML textbox a value in ASP.NET
本文介绍了如何在ASP.NET中获取HTML文本框的值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Hai我正在使用HTML文本框,我在Jquery中验证过,如果我可以给Runat =Server验证不会发生在jquery中,那么如何才能在Code中获取HTML文本框中的Value任何人帮我下面是我的HTML代码
Hai i am Using HTML text box , and i done validated in Jquery , if i can give the Runat="Server" the validating not happen in jquery ,So how can can i get the Value in HTML text box in Code beyond any one help me below is my HTML Code
<div class="control-group">
<label class="control-label">
SQL Server User<span class="required">*</span></label>
<div class="controls">
<input type="text" class="span6 m-wrap" name="SQLServerUser" id="SQLServerUser" />
<span class="help-inline">Provide SQL Server User</span>
</div>
</div>
推荐答案
< input type =textclass =inputfieldid =txtStuaddress3runat =服务器maxlength =50/>
代码背后
string str = txtStuaddress3.Value
<input type="text" class="inputfield" id="txtStuaddress3" runat="server" maxlength="50" />
code behind
string str=txtStuaddress3.Value
这篇关于如何在ASP.NET中获取HTML文本框的值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文