您目前尚未登陆,请选择【登陆】或【注册
首页->行政办公->酒店管理系统(三层开发)源码>>WebSite_hotel/ChangePwd.aspx.cs>>源码在线查看
温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:酒店管理系统(三层开发)源码
当前文件:文件类型 ThreeLayerHotel/WebSite_hotel/ChangePwd.aspx.cs打开代码结构图
普通视图
		            
1using System; 2using System.Collections; 3using System.Configuration; 4using System.Data; 5using System.Linq; 6using System.Web; 7using System.Web.Security; 8using System.Web.UI; 9using System.Web.UI.HtmlControls; 10using System.Web.UI.WebControls; 11using System.Web.UI.WebControls.WebParts; 12using System.Xml.Linq; 13using BLL; 14using Entity; 15 16public partial class Default2 : System.Web.UI.Page 17{ 18 protected void Page_Load(object sender, EventArgs e) 19 { 20 if (!IsPostBack) 21 { 22 if (Session["Name"] == null) 23 { 24 Response.Redirect("Index.aspx"); 25 } 26 Label7.Text = Request.UrlReferrer.ToString(); 27 } 28 } 29 30 protected void LinkButton12_Click(object sender, EventArgs e) 31 { 32 HotelUserEntity HUE = new HotelUserEntity(); 33 34 HUE.Password = txtnewpwd.Text; 35 HUE.UserName = Session["Name"].ToString(); 36 int r = HotelUserBLL.ChangePwd(HUE, txtpwd.Text); 37 if (r == 1) 38 { 39 Session["flag"] = "密码修改成功,请妥善保管..."; 40 Response.Redirect("Success.aspx"); 41 } 42 else if (r == 0) 43 { 44 lblmsg.Visible = true; 45 lblmsg.Text = "密码输入错误,修改失败..."; 46 } 47 else 48 { 49 } 50 } 51 protected void LinkButton11_Click(object sender, EventArgs e) 52 { 53 Response.Redirect(Label7.Text); 54 } 55} 56
还没有找到您心仪的内容?请用.net源码大搜捕
代码片断 打包下载该项目完整源码:酒店管理系统(三层开发)源码
51Aspx.com 版权所有 CopyRight © 2000-2008. 京ICP备06046876号