System.Web.HttpContext.Current在自定义类的静态方法中为什么可以获取 请求对象但是实例化自定义类后掉用非静态方法却得不到,求原因Public class ClassA
{
    public static string  GetSession(){
    return System.Web.HttpContext.Current.Handler.Session["a"].ToString();
   }
}public class ClassB
{
   public string GetSession(){
        return  System.Web.HttpContext.Current.Handler.Session["a"].ToString();
   }
}
public class page1:Page{     public void GetAString(){
      string a=ClassA.GetSession();//正确
      ClassB cb=new ClassB();
      string b=cb.GetSession();//报错
    }
}