在DLL代码中怎么用response对像

karllere 2005-03-24 04:10:23
response
server
request
application
session
这五个对像是ASP的内置对像,在 .ASP 文件中引用是可以被系统识别的。
但现在我想把部份ASP功能加入到DLL文件中,可是不知道在DLL文件中怎么引用这五个对像。
...全文
84 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
luoqi 2005-05-20
  • 打赏
  • 举报
回复
Set MyScriptingContext as ScriptingContext
Set MyResponse = MyScriptingContext.Response
blueonly 2005-05-20
  • 打赏
  • 举报
回复
look
csbq 2005-03-25
  • 打赏
  • 举报
回复
Private Sub Class_Initialize()
On Error Resume Next
Set objContext = GetObjectContext
Set Application = objContext.Item("Application")
Set Server = objContext.Item("Server")
Set Session = objContext.Item("Session")
Set Request = objContext.Item("Request")
Set Response = objContext.Item("Response")
End Sub
Private Sub Class_Terminate()
On Error Resume Next
Set Application = Nothing
Set Server = Nothing
Set Session = Nothing
Set Request = Nothing
Set Response = Nothing
Set objContext = Nothing
End Sub

28,404

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧