传递上下文到类中。

来源:互联网 发布:红蜘蛛软件怎么关 编辑:程序博客网 时间:2024/05/12 10:28

Sample:

        Dim Con As HttpContext = HttpContext.Current

        Dim Tpage As Pager = New Pager

        Tpage.Geturl(Con.Request)

       '*******************************************************************

        Friend Sub Geturl(ByVal Request As HttpRequest)

 

关于上下文:

http://www.microsoft.com/china/msdn/archives/library/dnaspnet/html/asp01242002.asp