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(); }
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(); }