2011年1月30日
摘要: protected void Page_Load(object sender, EventArgs e) { pager.RecordCount = bm.Count(); Bind(); } private void Bind() { PagedDataSource pds = new PagedDataSource(); pds.AllowPaging = true; pds.PageSize = pager.PageSize; pds.CurrentPageIndex = pager.CurrentPageIndex - 1; pds.DataSource = bm.GetAll().T 阅读全文
posted @ 2011-01-30 21:37 cw_volcano 阅读(291) 评论(0) 推荐(0) 编辑
摘要: 新方法只在三个项目中添加:BLL IDAL SQLServerDALweb.config中添加add key="DAL" value="JYAdmin.SQLServerDAL"/SQLServerDAL--属性--添加命名空间判断用户是否登录:MembershipUser mu = Membership.GetUser(); if (mu == null) { Response.Write("scriptalert('您尚未登录,请先登录!'); this.location='../Login.aspx';/script"); }如果是用的登录控件,登录后则会自动执行Memb 阅读全文
posted @ 2011-01-30 20:39 cw_volcano 阅读(162) 评论(0) 推荐(0) 编辑