Page.ClientScript.RegisterStartupScript(this.GetType(), "myscript", "javascript:alert('文件类型不正确或文件大于10M');", true);
ClientScript.RegisterStartupScript(this.GetType(), "Error", "<script language=javascript type=text/javascript>alert('保存失败!');</script>");
//点击后 转到另一页面
ClientScript.RegisterStartupScript(this.GetType(), "Error", "<script language=javascript type=text/javascript>alert('保存成功!');window.location.href='UserList.aspx';</script>");
asp.net简单加密
//using System.Web.Security;
System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile("密码", "MD5").ToLower().Substring(8, 16);