Web/User/UserComplaintList.aspx.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Common;
using System.Data;
using Maticsoft.BLL.WeiMai;
namespace WeiMaiShop.User
{
public partial class UserComplaintList : UserPage
{
int pageSize = 15;
protected void Page_Load(object sender, EventArgs e)
{
if (!this.IsPostBack)
{
ViewState["pageNo"] = 1;
ViewState["sWhere"] = " UserId="+userid;
BindT_ComplaintList(Convert.ToInt32(ViewState["pageNo"]), pageSize, ViewState["sWhere"].ToString());
}
}
/// <summary>
/// 分页绑定方法
/// </summary>
/// <param name="pageIndex"></param>
/// <param name="pageSize"></param>
/// <param name="strSql"></param>
protected void BindT_ComplaintList(int pageIndex, int pageSize, string sWhere)
{
//采用代码分页方法
int iRecordCount = 0;
//DataSet ds = bll.GetList(pageSize, pageIndex, "", out iRecordCount);
DataSet ds = Common.cPageBase.PageList("T_Complaint", "ComplaintId", "*", pageSize, pageIndex, " ComplaintId desc ", sWhere, out iRecordCount);
AspNetPager1.RecordCount = iRecordCount;
AspNetPager1.PageSize = pageSize;
AspNetPager1.CurrentPageIndex = pageIndex;
this.rpT_ComplaintList.DataSource = ds;
this.rpT_ComplaintList.DataBind();
}
protected void AspNetPager1_PageChanging(object src, Wuqi.Webdiyer.PageChangingEventArgs e)
{
ViewState["pageNo"] = e.NewPageIndex;
BindT_ComplaintList(e.NewPageIndex, pageSize, ViewState["sWhere"].ToString());
}
//删除用户
protected void delItem_Click(object sender, EventArgs e)
{
try
{
string ID = delID.Value;
T_ComplaintBLL bll = new T_ComplaintBLL();
bll.DeleteList(ID);
后面还有 16 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
