Web/Client/VipComment.aspx.cs
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections;
using System.Configuration;
using System.Data;
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;
namespace MrZeng.Web.Client
{
public partial class VipComment : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
if (Session["VipNum"] != null)
{
CommentGoodsBind(Session["VipNum"].ToString());
}
else
{
MrZeng.BLL.Common.ClientWrite("parent.window.location=\"VipCenter.aspx\"");
}
}
}
/// <summary>
/// 商品评论绑定
/// </summary>
private void CommentGoodsBind(string VipNum)
{
string fldName = "Date";
int pagesize = AspNetPager1.PageSize;
int pageindex = 0;
string strWhere = "CommentMan='" + VipNum + "'";
MrZeng.BLL.P_Comment bll = new MrZeng.BLL.P_Comment();
if (AspNetPager1.CurrentPageIndex < 1)
{
pageindex = 1;
}
else
{
pageindex = AspNetPager1.CurrentPageIndex;
}
DataSet ds = bll.GetList(fldName, pagesize, pageindex, strWhere);
//动态设置用户自定义文本内容
AspNetPager1.RecordCount = int.Parse(ds.Tables[1].Rows[0][0].ToString());
if (AspNetPager1.RecordCount < 1)
{
Panel1.Visible = true;
}
AspNetPager1.CustomInfoHTML = "共" + AspNetPager1.RecordCount.ToString() + "条,";
AspNetPager1.CustomInfoHTML += "" + AspNetPager1.PageCount.ToString() + "页,";
AspNetPager1.CustomInfoHTML += "第" + AspNetPager1.CurrentPageIndex.ToString() + "页";
DLCommentGoods.DataSource = ds.Tables[0].DefaultView;
DLCommentGoods.DataBind();
后面还有 32 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读 AI
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
