如何阅读Textbox
里面的内容Ajax tab container
。这是我的设计
<ajax:TabContainer ID="TabContainer1" runat="server" CssClass="fancy fancy-green">
<ajax:TabPanel ID="tbpnluser" runat="server">
<HeaderTemplate>
New User
</HeaderTemplate>
<ContentTemplate>
<asp:Panel ID="UserReg" runat="server">
<table align="center">
<tr>
<td>
</td>
<td align="right">
</td>
<td align="center">
<b>Registration Form</b>
</td>
</tr>
<tr>
<td>
</td>
<td align="right">
UserName:
</td>
<td>
<asp:TextBox ID="txtuser" runat="server"></asp:TextBox>
</td>
</tr>
</table>
</asp:Panel>
</ContentTemplate>
</ajax:TabPanel>
<script type="text/javascript">
function alert() {
var value = document.getElementById("TabContainer1_tbpnluser_txtuser").value;
alert(value);
}
</script>
这就是我的文本框的样子
<asp:TextBox ID="txtuser" onblur="alert();" runat="server"></asp:TextBox>
我想阅读textbox
来自javascript
任何人都可以帮助我