Web/Client/CommentDetails.aspx.cs
(开头部分) 4KB这里只显示每个文件的开头 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 CommentDetails : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
if (Request.QueryString["id"] != null)
{
CommentGoodsBind(Convert.ToInt32(Request.QueryString["id"]));
}
else
{
Response.Redirect("Default.aspx");
}
}
}
/// <summary>
/// 商品详情绑定
/// </summary>
/// <param name="id"></param>
private void CommentGoodsBind(int id)
{
MrZeng.BLL.P_Comment bll = new MrZeng.BLL.P_Comment();
MrZeng.Model.P_Comment model = bll.GetModel(id);
GoodsID.Text = model.GoodsID;
CommentMan.Text = model.CommentMan;
Date.Text = model.Date.ToString();
Content.Text = model.Content;
CommentGoodsBind();
}
/// <summary>
/// 商品评论绑定
/// </summary>
private void CommentGoodsBind()
{
string fldName = "Date";
int pagesize = AspNetPager1.PageSize;
int pageindex = 0;
string strWhere = "GoodsID='" + GoodsID.Text + "'";
MrZeng.BLL.P_Comment bll = new MrZeng.BLL.P_Comment();
if (AspNetPager1.CurrentPageIndex < 1)
{
pageindex = 1;
}
else
后面还有 88 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读 AI
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
