DLL组件问题?

xunua 2005-09-06 02:38:23
以下是dll组件的代码
Public Sub OnStartPage(PassedScriptContext As ScriptingContext)
Set Context = PassedScriptContext 'Asp运行环境对象
Set Application = Context.Application 'Asp 五大对象
Set Request = Context.Request
Set Response = Context.Response
Set Server = Context.Server
Set Session = Context.Session
Response.Write "start" '测试
End Sub



Public Sub OnEndPage()
Set Response = Nothing
Set Request = Nothing
Set Server = Nothing
Set Application = Nothing
Set Session = Nothing
Response.Write "end" '测试
End Sub

为什么在asp页面中调用组件的时候成功输出了"start"而"end"没有输出呢?
...全文
62 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
yas 2005-09-06
  • 打赏
  • 举报
回复
粗心的了 ^_^
winehero 2005-09-06
  • 打赏
  • 举报
回复
你已经将Response清除掉了(Set Response = Nothing),当然write方法无效。

将Response.Write "end" 放在
Set Response = Nothing前面。

7,765

社区成员

发帖
与我相关
我的任务
社区描述
VB 基础类
社区管理员
  • VB基础类社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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