【发布时间】:2016-09-13 07:58:50
【问题描述】:
您好,我正在尝试访问运行在服务器上的脚本标记中 aspx 页面中的文本框值,但我无法访问该属性。
<asp:Label ID="wssName" runat="server" Text="Label"></asp:Label>
<script runat="server">
string fg = wss.Text;
</script>
非常感谢您的帮助。
【问题讨论】:
-
您是否尝试根据您的代码访问 texbox 值或标签值??????如果更多,您可以尝试 document.getElementById("wssName");
-
其实我想同时访问标签和文本框
标签: asp.net