private void Button1_Click(object sender, System.EventArgs e)
{
string EnPswdStr = FormsAuthentication.HashPasswordForStoringInConfigFile("abc","MD5");
string bb = FormsAuthentication.HashPasswordForStoringInConfigFile(TextBox1.Text,"MD5");
if(bb!=EnPswdStr)
{
Response.Write(bb+"<br>");
Response.Write(EnPswdStr);
Response.Write("<script>alert('密码不正确');</script>"); }
else
{
Response.Write(bb+"<br>");
Response.Write(EnPswdStr);
Response.Write("<script>alert('成功');</script>");
}
{
string EnPswdStr = FormsAuthentication.HashPasswordForStoringInConfigFile("abc","MD5");
string bb = FormsAuthentication.HashPasswordForStoringInConfigFile(TextBox1.Text,"MD5");
if(bb!=EnPswdStr)
{
Response.Write(bb+"<br>");
Response.Write(EnPswdStr);
Response.Write("<script>alert('密码不正确');</script>"); }
else
{
Response.Write(bb+"<br>");
Response.Write(EnPswdStr);
Response.Write("<script>alert('成功');</script>");
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货