个人总结

1.在Linq中用join时,要把条件房子主表from的后面,然后再join其他表,不然不会发生作用。

如:

from q in dc.StudentInClass
 where q.Class_Id == Class_Id&&q.Student_Id==Stu_Id
   join s in dc.Student on q.Student_Id equals s.UserId

2:在服务程序文件(.ashx)中使用Session时,应该实现 IRequiresSessionState 接口,并调用 System.Web.SessionState 命名空间如下

using System.Web.SessionState;
public class SetStudentSeat : IHttpHandler , IRequiresSessionState
{
//代码
}

 3、要在  http://www.domurl.com/ 上注册一个账号来保存自己常用的网址。这个网站比较经典,谁用谁知道!

原文地址:https://www.cnblogs.com/longyi/p/2618577.html