<script type="text/javascript">
function Hash2Password() {
var s = document.getElementById("<%=tbPassword.ClientID%>").value;
}
</script>
<form id="form1" onsubmit="Hash2Password();" runat="server">
<div>
<asp:TextBox ID="tbUserName" runat="server"></asp:TextBox>
<asp:TextBox ID="tbPassword" runat="server" TextMode="Password"></asp:TextBox>
<asp:Button ID="btnSubmit" runat="server" Text="Button" />
</div>
<asp:textbox id="TextBox1" runat="server" width="60%"></asp:textbox>
</form>
JavaScript в asp.net
Код:
Открой консоль и посмотри, какая ошибка.