Esempio n. 1
0
        public void LoadComments(Guid AccessCode)
        {
            DataSet ds;

            ds = new CommentDAO().SelectByContext(2, AccessCode);
            ds.Tables[0].PrimaryKey = new DataColumn[] { ds.Tables[0].Columns["CommentId"] };

            DataListStudentComments.DataSource = ds.Tables[0];
            DataListStudentComments.DataBind();
        }
Esempio n. 2
0
        //public void LoadComments(Guid AccessCode)
        //{
        //    DataSet ds;
        //    ds = new CommentDAO().SelectByContext(1, AccessCode);
        //    ds.Tables[0].PrimaryKey = new DataColumn[] { ds.Tables[0].Columns["CommentId"] };

        //    DataListStudentComments.DataSource = ds.Tables[0];
        //    DataListStudentComments.DataBind();

        //}

        public void LoadComments()
        {
            DataSet ds = null;

            ds = new CommentDAO().SelectByContext(1, Guid.Parse(Membership.GetUser().ProviderUserKey.ToString()));
            ds.Tables[0].PrimaryKey = new DataColumn[] { ds.Tables[0].Columns["CommentId"] };

            DataListStudentComments.DataSource = ds.Tables[0];
            DataListStudentComments.DataBind();
        }