您目前尚未登陆,请选择【登陆】或【注册
首页->行政办公->酒店管理系统(三层开发)源码>>WebSite_hotel/Index.aspx.cs>>源码在线查看
温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:酒店管理系统(三层开发)源码
当前文件:文件类型 ThreeLayerHotel/WebSite_hotel/Index.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 Index : 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 MPE.Show(); 25 } 26 MultiView1.ActiveViewIndex = 0; 27 } 28 } 29 protected void ibtnLogin_Click(object sender, ImageClickEventArgs e) 30 { 31 HotelUserEntity HUE = new HotelUserEntity(); 32 HUE.Password = txtpassword.Text; 33 HUE.UserName = txtusername.Text; 34 string str = HotelUserBLL.ExistUser(HUE); 35 if (str == "成功") 36 { 37 Session["Name"] = txtusername.Text; 38 Response.Redirect("index.aspx"); 39 MPE.Hide(); 40 41 } 42 else 43 { 44 MPE.Show(); 45 lblmsg.Visible = true; 46 lblmsg.Text = "登录失败,用户名或密码错误!" ; 47 } 48 } 49} 50
还没有找到您心仪的内容?请用.net源码大搜捕
代码片断 打包下载该项目完整源码:酒店管理系统(三层开发)源码
51Aspx.com 版权所有 CopyRight © 2000-2008. 京ICP备06046876号