Esempio n. 1
0
    private void BindSend()
    {
        DataTable       dt  = XiHuan_UserNotesFacade.GetUserNotes(CurrentUserId, 0, 1, false);
        PagedDataSource pds = new PagedDataSource();

        pds.AllowPaging         = true;
        pds.PageSize            = 10;
        pds.DataSource          = dt.DefaultView;
        PageControl2.DataSource = pds;
        rptSend.DataSource      = pds;
        rptSend.DataBind();
        ExecStartupScript("$('#send').show();");
        ExecStartupScript("$('#receive').hide();");
        lblType.Text = "发出";
    }
Esempio n. 2
0
 private void BindNotes()
 {
     rptUserNotes.DataSource = XiHuan_UserNotesFacade.GetUserNotes(GoodDetail.OwnerId, GoodDetail.Id, 0, false);
     rptUserNotes.DataBind();
 }