예제 #1
0
 protected override void AttachChildControls()
 {
     this.pointList    = (Common_Point_PointList)this.FindControl("Common_Point_PointList");
     this.pager        = (Pager)this.FindControl("pager");
     this.litUserPoint = (System.Web.UI.WebControls.Literal) this.FindControl("litUserPoint");
     PageTitle.AddSiteNameTitle("我的积分", HiContext.Current.Context);
     this.pointList.ItemDataBound += new System.Web.UI.WebControls.DataListItemEventHandler(this.pointList_ItemDataBound);
     if (!this.Page.IsPostBack)
     {
         this.BindPoint();
         Member member = Users.GetUser(HiContext.Current.User.UserId, false) as Member;
         if (member != null)
         {
             this.litUserPoint.Text = member.Points.ToString();
         }
     }
 }
예제 #2
0
파일: UserPoints.cs 프로젝트: davinx/himedi
 protected override void AttachChildControls()
 {
     this.pointList = (Common_Point_PointList) this.FindControl("Common_Point_PointList");
     this.pager = (Pager) this.FindControl("pager");
     this.litUserPoint = (Literal) this.FindControl("litUserPoint");
     PageTitle.AddSiteNameTitle("我的积分", HiContext.Current.Context);
     this.pointList.ItemDataBound += new DataListItemEventHandler(this.pointList_ItemDataBound);
     if (!this.Page.IsPostBack)
     {
         this.BindPoint();
         Member user = Users.GetUser(HiContext.Current.User.UserId, false) as Member;
         if (user != null)
         {
             this.litUserPoint.Text = user.Points.ToString();
         }
     }
 }