日期:2014-05-17 浏览次数:20763 次
string MD5passwd1;
MD5passwd1 = System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(password1.Text, "MD5");
OleDbCommand upadte_cmd = new OleDbCommand("UPDATE [bin_manage] set [password] ='" + MD5passwd1 + "', [email] ='" + email.Text + "', where [username] =" + username.Text, myConn);
upadte_cmd.ExecuteNonQuery();
myConn.Close();
Response.Write("<script>alert('ok');location='index.aspx';</script>");