ReaderMasterPage.Master.cs
上传用户:gooyliu
上传日期:2018-09-29
资源大小:5816k
文件大小:1k
- using System;
- using System.Collections;
- using System.Configuration;
- using System.Data;
- using System.Linq;
- using System.Web;
- using System.Web.Security;
- using System.Web.UI;
- using System.Web.UI.HtmlControls;
- using System.Web.UI.WebControls;
- using System.Web.UI.WebControls.WebParts;
- using System.Xml.Linq;
- using BusinessLogicLayer;
- namespace Web.Reader
- {
- public partial class ReaderMasterPage : System.Web.UI.MasterPage
- {
- protected void Page_Load(object sender, EventArgs e)
- {
- if (!IsPostBack)
- {
- dispUserName();
- }
- }
- void dispUserName()
- {
- Users LoginUser = new Users();
- LoginUser.UserID = Session["UserID"].ToString();
- DataSet ds = LoginUser.GetUserInfoByID(LoginUser.UserID);
- labUser.Text = ds.Tables[0].Rows[0]["userName"].ToString();
- }
- protected void btnSearch_Click(object sender, EventArgs e)
- {
- Response.Redirect("SearchBook.aspx");
- }
- }
- }