我在一个页面的form里放了一个Textbox,现在需要访问它的属性,怎么访问。<body>
<form id="Form1" method="post" runat="server">
<table id="table1" width="600" align="center">
<tr id="tr1">
<td id="td1">回复信息:
<asp:textbox id="TextRe" runat="server" Width="532px" MaxLength="299"></asp:textbox></td>
</tr>
</tbody>
</table>
</form>
</body>在js里用:
1、document.getElementById("TextRe").Value
2、document.getElementById("TextRe").Text
3、document.all.TextRe.Value
4、document.all.TextRe.Text
都访问不到文本值。
js是直接写在页面的head的script标签里的。
现在我“必须”用服务器控件,不能用客户端输入框,怎么办?解决就给分,不够可以加到100