myBook.Web/collect.aspx.cs
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using myBook.BLL;
using myBook.Model;
using System.Data;
public partial class collect : System.Web.UI.Page
{
View_bookCollectBLL vbctBLL = new View_bookCollectBLL();
protected void Page_Load(object sender, EventArgs e)
{
common.checkIndexLogin("Login.aspx");
if (!IsPostBack)
{
this.BindCollect();
}
}
/// <summary>
/// 我的收藏
/// </summary>
private void BindCollect()
{
string strWhere = " userid="+loginSession.loginInfo.session().Id;
if (this.txtBookName.Text != "")
{
strWhere += " and name like '%" + this.txtBookName.Text + "%'";
}
int pageIndex = this.HFPageIndex.Value != "" ? int.Parse(this.HFPageIndex.Value) : 1;
int rowCount = vbctBLL.GetRecordCount(strWhere);
int pageSize = int.Parse(this.HFPageSize.Value);
int pageCount = (rowCount - 1) / pageSize + 1;
this.HFPageCount.Value = pageCount.ToString();
int startIndex = this.HFStartIndex.Value != "" ? int.Parse(this.HFStartIndex.Value) : 1;//开始条数
int endIndex = this.HFEndIndex.Value != "" ? int.Parse(this.HFEndIndex.Value) : pageSize;//结束条数
DataTable dt = vbctBLL.GetListByPage(strWhere, " id desc", startIndex, endIndex).Tables[0];
this.HFPageIndex.Value = pageIndex.ToString();
this.HFStartIndex.Value = startIndex.ToString();
this.HFEndIndex.Value = endIndex.ToString();
后面还有 37 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读 AI
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
