35 lines
1.1 KiB
C#
35 lines
1.1 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Web;
|
|
using System.Web.UI;
|
|
using System.Web.UI.WebControls;
|
|
|
|
namespace Mtxfw.shop
|
|
{
|
|
public partial class Member_Inbox : Mtxfw.Utility.MemberBase
|
|
{
|
|
public Mtxfw.DAL.Article daoArt = new Mtxfw.DAL.Article();
|
|
protected override void OnLoad(EventArgs e)
|
|
{
|
|
base.OnLoad(e);
|
|
|
|
if (!IsPostBack)
|
|
{
|
|
Data_Bind();
|
|
Page.Title = "收件箱 - " + GetWebName;
|
|
}
|
|
|
|
MyPager.PageChanged += delegate(object s, EventArgs ex)
|
|
{
|
|
Data_Bind();
|
|
};
|
|
}
|
|
|
|
protected void Data_Bind()
|
|
{
|
|
MyPager.PageSize = 20;
|
|
MyPager.RecordCount = daoArt.GetCount("receiverid=" + Card + " And ParentID=8");
|
|
Mtxfw.Utility.Tools.ToBind(Repeater1, daoArt.GetPager(MyPager, "(Select UserName From user_info b Where b.id=a.senderid) as senderName,(Select UserName From user_info b Where b.id=a.receiverid) as receiverName,", "receiverid=" + Card + " And ParentID=8 Order by AddTime desc"));
|
|
}
|
|
}
|
|
} |