Code 1 2 3publicvoid bind() { //blogdatabaseDataContext ocDC = new blogdatabaseDataContext(); Table <Class_Download> cd = ocDC.GetTable <Class_Download>(); Table <Class> cl = ocDC.GetTable <Class>(); var info = from d in cd join l in cl on d.classID equals l.classID where (d.Username == "sickcat" ) //此处应该读取cookie select new { //下载日期 课程名称 课程类型 发布时间 d.DownloadTime, l.classTitle, d.classID, l.releaseTime }; this.GridView1.DataSource = info; this.GridView1.DataBind(); } 4
posted on
2009-04-29 14:23郑州--飞猫
阅读(961)
评论(0)
编辑收藏举报