コード例 #1
0
ファイル: gerendangan.aspx.cs プロジェクト: wfwe/Blog
 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
ファイル: adddangan.aspx.cs プロジェクト: wfwe/Blog
 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
ファイル: QuanLyUser.cs プロジェクト: TuanAnhNguyen69/QLVLXD
 private void Refresh_Grid()
 {
     this.gridControl_QuanlyUser.DataSource = null;
     this.gridControl_QuanlyUser.DataSource = quanlyuser.GetList();
 }