protected void Page_Load(object sender, EventArgs e) { if (WebUtil.PrepareEnvironment(this, ref app, ref sessioninfo) == false) { return; } // 是否登录? if (sessioninfo.UserID == "") { sessioninfo.LoginCallStack.Push(Request.RawUrl); Response.Redirect("login.aspx", true); return; } if (this.IsPostBack == false) { string strResultsetFilename = CacheBuilder.GetMyBookshelfFilename( app, sessioninfo); if (File.Exists(strResultsetFilename) == true) { long lHitCount = CacheBuilder.GetCount(app, strResultsetFilename, true); this.BrowseSearchResultControl1.ResultsetFilename = strResultsetFilename; this.BrowseSearchResultControl1.ResultCount = (int)lHitCount; } else { this.BrowseSearchResultControl1.Title = "我的书架 目前 内容为空"; } } this.BrowseSearchResultControl1.Title = (string)this.GetLocalResourceObject("我的书架"); }