<script type="text/javascript">
function form_validate(str) {
if (document.getElementById('<%= txtnewpass.ClientID %>').value != "") {
var Encryptpwd = md5(document.getElementById('<%= txtnewpass.ClientID %>').value);
document.getElementById('<%=hidden1.ClientID %>').value = Encryptpwd;
}
if (document.getElementById('<%= txtconfpass.ClientID %>').value != "") {
var Encryptpwd = md5(document.getElementById('<%= txtconpass.ClientID %>').value);
document.getElementById('<%=hidden2.ClientID %>').value = Encryptpwd;
return true;
}
}
</script>
<html>
<body>
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<form id="form1" runat="server">
<asp:HiddenField ID="hidden1" runat="server"/>
<asp:HiddenField ID="hidden2" runat="server"/>
</form>
</body>
</html>
string hiddenfile1=hidden1.value;
string hiddenfile2=hidden2.value;
No comments:
Post a Comment