Ejemplo n.º 1
0
 protected override void OnLoad(EventArgs e)
 {
     this.voteds = CommentBrowser.GetVoteByIsShow();
     if (this.voteds != null && this.voteds.Tables.Count >= 2 && this.voteds.Tables[0] != null && this.voteds.Tables[1] != null && this.voteds.Tables[0].Rows.Count > 0)
     {
         this.voteds.Tables[0].Columns.Add("Vote", typeof(DataView));
         this.voteds.Tables[0].Rows[0]["Vote"] = this.voteds.Tables[1].DefaultView;
     }
     base.DataSource = this.voteds;
     base.DataBind();
 }
Ejemplo n.º 2
0
 protected override void OnLoad(EventArgs e)
 {
     base.DataSource = CommentBrowser.GetVoteByIsShow();
     base.DataBind();
 }