请教:ASP.NET中,response,request,及server,application等对象属于哪个namespace?怎么定义啊我想编译成DLL文件,可这几个对象不知怎么搞.请高手指教.

解决方案 »

  1.   

    照这样写应该没问题
    vbc /t:library /out:E:\my\bin\ads_edit.dll /r:system.dll,system.data.dll,system.web.dll E:\my\后台文件\ads_edit.aspx.vb
      

  2.   

    还是不知该怎么引用.temp.vbImports System.Web.HttpContext
    Imports System.???namespace temp
    public class tmp
    public request as ???
    public response as ???
    public server as ???
    public application as ???
    public session as ???...这AS及Imports后面填什么啊
      

  3.   

    你用vs.net他会自动提你写好的啦。
      

  4.   

    System.Web
    System.Web.HttpContext.Current
      

  5.   

    error BC30466:无法找到 Imports "System.Web.HttpContext.Current" 的命名空间或类型"Current".
      

  6.   

    Imports "System.Web"然后直接用Response.xxx
      

  7.   

    Imports System.Web
    Imports System.Web.SessionStatePublic Class tmp    Public request As HttpRequest
        Public response As HttpResponse
        Public server As HttpServerUtility
        Public application As HttpApplication
        Public session As HttpSessionStateEnd Class
      

  8.   

    Public Class tmp    Public request As HttpRequest
        Public response As HttpResponse
        Public server As HttpServerUtility
        Public application As HttpApplication
        Public session As HttpSessionStateEnd Class臃肿,其实HttpContext就包括这所有了。
      

  9.   

    谢谢大家!
    找到解决办法了.
    原来我忘了在Public Class xxx下加这么一句:Inherits System.Web.UI.Page谢谢各位.