Asp.net源码专业站
首页->电子商务->淘淘网电子商务网站源码(毕业设计)>>Customer/UpdatePwd.aspx.cs>>源码在线查看
温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:淘淘网电子商务网站源码(毕业设计)
当前文件:文件类型 TaoTaoBiz/Customer/UpdatePwd.aspx.cs[1K,2009-6-12 11:57:20]打开代码结构图
普通视图
		            
1using System; 2using System.Collections; 3using System.ComponentModel; 4using System.Data; 5using System.Drawing; 6using System.Web; 7using System.Web.SessionState; 8using System.Web.UI; 9using System.Web.UI.WebControls; 10using System.Web.UI.HtmlControls; 11using web.Code; 12 13namespace web.Customer 14{ 15 /// <summary> 16 /// update_pwd 的摘要说明。 17 /// </summary> 18 public partial class update_pwd : System.Web.UI.Page 19 { 20 21 protected void Page_Load(object sender, System.EventArgs e) 22 { 23 // 在此处放置用户代码以初始化页面 24 if(Session["LoginName"]==null) 25 { 26 Response.Redirect("../Login.aspx?Return=" + Request.Url.ToString() ); 27 } 28 submitbn.Attributes.Add("onclick","return checkEmpty(pwd0)&&checkEmpty(pwd1)&&checkEmpty(pwd2);"); 29 } 30 31 Web 窗体设计器生成的代码 50 51 protected void submitbn_Click(object sender, System.EventArgs e) 52 { 53 CustomerDAO customerDAO = new CustomerDAO(); 54 if(customerDAO.checkIsExist(Session["LoginName"].ToString(),pwd0.Text) != 0) 55 { 56 customerDAO.updatePwd(Session["LoginName"].ToString(),pwd1.Text); 57 Response.Write("<script>alert('修改密码成功!')</script>"); 58 } 59 else 60 { 61 Response.Write("<script>alert('初始密码错误!')</script>"); 62 } 63 } 64 } 65} 66
还没有找到您心仪的内容?请用.net源码大搜捕
代码片断 打包下载该项目完整源码:淘淘网电子商务网站源码(毕业设计)
51Aspx.com 版权所有 CopyRight © 2006-2010. 京ICP备06046876号 本站法律顾问:ITlaw-庄毅雄律师
返回顶部
客户服务:点击这里进行客户咨询 业务合作:点击这里洽谈业务合作 合作热线:010-68880146