Esempio n. 1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     rep.DataSource = Artbll.GetListRevert(0);
     rep.DataBind();
     reptype.DataSource = Artbll.GetList(0);
     reptype.DataBind();
     //最新评论
     repzxpl.DataSource = rebll.selectt(5);
     repzxpl.DataBind();
 }
Esempio n. 2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         int id = Convert.ToInt32(Request.QueryString["ID"].ToString());
         //日志全文
         rep.DataSource = Arcbll.GetList(id);
         rep.DataBind();
         //浏览一次加一
         artmodel.ID = id;
         Arcbll.addCount(artmodel);
         select();
     }
 }
Esempio n. 3
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         //个人档案
         repg.DataSource = userbll.GetList();
         repg.DataBind();
         repgr.DataSource = userbll.GetList();
         repgr.DataBind();
         select();
         reptype.DataSource = typebll.GetList(0);
         reptype.DataBind();
         repzx.DataSource = bll.GetList(5);
         repzx.DataBind();
         //最新评论
         repzxpl.DataSource = rebll.selectt(5);
         repzxpl.DataBind();
     }
 }
Esempio n. 4
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         rep.DataSource = bll.GetListRevert(7);
         rep.DataBind();
         reptype.DataSource = typebll.GetList(0);
         reptype.DataBind();
         //最新文章
         repzx.DataSource = bll.GetList(5);
         repzx.DataBind();
         //最新评论
         repzxpl.DataSource = rebll.selectt(5);
         repzxpl.DataBind();
         //个人档案
         repgr.DataSource = userbll.GetList();
         repgr.DataBind();
     }
     //DataTable dt = typebll.GetList(0);
     //Label1.Text = dt.Rows[0][0].ToString();
 }
Esempio n. 5
0
 public void select()
 {
     rep1.DataSource = artbll.GetList(0);
     rep1.DataBind();
 }