如题!

解决方案 »

  1.   

    HttpContext.Current.Response.Write
    Response.Write
    区别就是前者 在 教你 更快的熟悉键盘键位.asp页面的后台 可以直接写出来
    类库中则用HttpContext.Current
      

  2.   

    先说使用:
    页面后的就直接Response.Write
    通常在类中如果该类不继承System.Web.UI.Page类(公共的方法类),可以直接用HttpContext.Current.Response,因为Current是静态属性可以直接使用
    区别:
     HttpContext.Current.Response:重点应该在Current
    当前在不同的时候返回值是不一样的。
    Page.Response:只是当前页面的Response对象。
    访问a页的时候,
    HttpContext.Current.Response就是a页面里的Response
    访问b页的时候,
    HttpContext.Current.Response就是b页面里的Response 
      

  3.   

    HttpContext.Current.Response.Write和Response.Write 在page上是有区别的,
    以前做一个实例的时候用过,现在找不到了
      

  4.   

    是有区别的,具体的说不出来,但是有的场合必须使用HttpContext.Current
    可能是因为线程安全的原因,再详细就不知道了