示例#1
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();
     }
 }
示例#2
0
 public void select()
 {
     this.txtxm.Text    = userbll.GetList().Rows[0]["Name"].ToString();
     this.TextBox2.Text = userbll.GetList().Rows[0]["sex"].ToString();
     this.txtrq.Text    = userbll.GetList().Rows[0]["Birthday"].ToString();
     this.txtdz.Text    = userbll.GetList().Rows[0]["Fristaddress"].ToString();
     this.txtjz.Text    = userbll.GetList().Rows[0]["Secondaddress"].ToString();
     this.txtEimal.Text = userbll.GetList().Rows[0]["Email"].ToString();
     this.txtjd.Text    = userbll.GetList().Rows[0]["School"].ToString();
 }
示例#3
0
文件: index.aspx.cs 项目: wfwe/Blog
 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();
 }
示例#4
0
 protected void Page_Load(object sender, EventArgs e)
 {
     repjb.DataSource = userbll.GetList();
     repjb.DataBind();
 }
示例#5
0
 private void Refresh_Grid()
 {
     this.gridControl_QuanlyUser.DataSource = null;
     this.gridControl_QuanlyUser.DataSource = quanlyuser.GetList();
 }