<asp:TextBox ID="TextBox_UserPwd" runat="server" CssClass="STYLE1"
onblur="if(this.value==''){this.value='******';this.style.color='#B8B894';}else{this.style.color='black';}"
onfocus="this.style.color='black';if(this.value=='******')this.value='';"
Width="108px" Height="18px" Text="111111" TextMode="Password" ></asp:TextBox><asp:TextBox ID="TextBox1" runat="server" CssClass="STYLE1"
onclick="this.style.display = 'none';document.getElementById('TextBox_UserPwd').style.display = 'block';document.getElementById('TextBox_UserPwd').focus();">111111</asp:TextBox>
现在是获取不到TextBox_UserPwd的id,真的不知道怎么回事了,求解.......我是在用户空间里面做的
onblur="if(this.value==''){this.value='******';this.style.color='#B8B894';}else{this.style.color='black';}"
onfocus="this.style.color='black';if(this.value=='******')this.value='';"
Width="108px" Height="18px" Text="111111" TextMode="Password" ></asp:TextBox><asp:TextBox ID="TextBox1" runat="server" CssClass="STYLE1"
onclick="this.style.display = 'none';document.getElementById('TextBox_UserPwd').style.display = 'block';document.getElementById('TextBox_UserPwd').focus();">111111</asp:TextBox>
现在是获取不到TextBox_UserPwd的id,真的不知道怎么回事了,求解.......我是在用户空间里面做的
为什么要用服务器控件
为什么要在前端前段拿服务器控件
<asp:TextBox ID="TextBox1" runat="server" CssClass="STYLE1"
onclick="this.style.display = 'none';document.getElementById('TextBox_UserPwd').style.display = 'block';document.getElementById('<%=TextBox_UserPwd.ClientID%>').focus();">111111</asp:TextBox>"