我不确定我是否理解Response.buffer的真正含义 [英] Not sure I understand what Response.buffer is really about

查看:94
本文介绍了我不确定我是否理解Response.buffer的真正含义的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

下面是我发现的一个片段,我正在尝试使用。
。不幸的是,在A97中有一个编译时错误

抱怨响应 (第1行)是一个未定义的

变量。我不确定是什么意思,所以我不能再进一步了。

如果某人有第1行的替代品,将在A97编译

,我将不胜感激帮助。

Private Sub Command0_Click()


Response.Buffer = True

Dim objXMLHTTP,xml


设置xml = Server.CreateObject(" Microsoft.XMLHTTP")

xml.Open" GET"," http://www.4Guysfromrolla .com /" ;, False,_

" Richard"," Welcome"


''实际发送请求并返回数据:< br $>
xml.Send


Response.Write xml.responseText


设置xml = Nothing


End Sub

Below is a snippet I found and am trying to experiment
with. Unfortunately, there''s a compile time error in A97
complaining that "Response" (in line #1) is an undefined
variable. I''m unsure what is intended, so I can go no further.
If someone has an alternative for line #1 that will compile
in A97, I would appreciate the help.
Private Sub Command0_Click()

Response.Buffer = True
Dim objXMLHTTP, xml

Set xml = Server.CreateObject("Microsoft.XMLHTTP")

xml.Open "GET", "http://www.4Guysfromrolla.com/", False, _
"Richard", "Welcome"

'' Actually Sends the request and returns the data:
xml.Send

Response.Write xml.responseText

Set xml = Nothing

End Sub

推荐答案

MLH写道:
下面是我发现的一个片段我正在尝试用它来实验。不幸的是,A97中有一个编译时错误抱怨响应。 (第1行)是一个未定义的变量。我不确定是什么意思,所以我不能再进一步了。
如果有人在A97中有第1行的替代品,我会很感激帮助。

Private Sub Command0_Click()

Response.Buffer = True
Dim objXMLHTTP,xml
设置xml = Server.CreateObject(" Microsoft.XMLHTTP" )

xml.OpenGET,http://www.4Guysfromrolla.com/" ;, False,_
Richard",Welcome<

''实际发送请求并返回数据:
xml.Send

Response.Write xml.responseText

设置xml = Nothing

End Sub
Below is a snippet I found and am trying to experiment
with. Unfortunately, there''s a compile time error in A97
complaining that "Response" (in line #1) is an undefined
variable. I''m unsure what is intended, so I can go no further.
If someone has an alternative for line #1 that will compile
in A97, I would appreciate the help.
Private Sub Command0_Click()

Response.Buffer = True
Dim objXMLHTTP, xml

Set xml = Server.CreateObject("Microsoft.XMLHTTP")

xml.Open "GET", "http://www.4Guysfromrolla.com/", False, _
"Richard", "Welcome"

'' Actually Sends the request and returns the data:
xml.Send

Response.Write xml.responseText

Set xml = Nothing

End Sub




响应是一个ASP对象。

http://psacake.com/web/gz.asp



Response is an ASP object.

http://psacake.com/web/gz.asp

< br> <>

2005年12月26日星期一04:12:58 GMT,rkc

< rk *@rochester.yabba.dabba.do.rr.bomb>写道:
On Mon, 26 Dec 2005 04:12:58 GMT, rkc
<rk*@rochester.yabba.dabba.do.rr.bomb> wrote:
MLH写道:
下面是我发现的一个片段,我正在尝试用它来实验。不幸的是,A97中有一个编译时错误抱怨响应。 (第1行)是一个未定义的变量。我不确定是什么意思,所以我不能再进一步了。
如果有人在A97中有第1行的替代品,我会很感激帮助。

Private Sub Command0_Click()

Response.Buffer = True
Dim objXMLHTTP,xml
设置xml = Server.CreateObject(" Microsoft.XMLHTTP" )

xml.OpenGET,http://www.4Guysfromrolla.com/" ;, False,_
Richard",Welcome<

''实际发送请求并返回数据:
xml.Send

Response.Write xml.responseText

设置xml = Nothing

End Sub
Below is a snippet I found and am trying to experiment
with. Unfortunately, there''s a compile time error in A97
complaining that "Response" (in line #1) is an undefined
variable. I''m unsure what is intended, so I can go no further.
If someone has an alternative for line #1 that will compile
in A97, I would appreciate the help.
Private Sub Command0_Click()

Response.Buffer = True
Dim objXMLHTTP, xml

Set xml = Server.CreateObject("Microsoft.XMLHTTP")

xml.Open "GET", "http://www.4Guysfromrolla.com/", False, _
"Richard", "Welcome"

'' Actually Sends the request and returns the data:
xml.Send

Response.Write xml.responseText

Set xml = Nothing

End Sub



响应是一个ASP对象。

http://psacake.com/web/gz.asp



嗯那就是它结束我的地方。我对ASP一无所知。

也许我可以在VBA中做些什么来模仿

什么是Response对象。你提供的链接说

用于将输出发送回客户端(浏览器)。将

再玩一遍。


Well, that''s where it ends for me. I know nothing of ASP.
Perhaps there''s something I can do in VBA that will emulate
what the Response object does. The link you furnished said
its used to send the output back to the client (browser). Will
play around with it some more.


MLH写道:

< snip>
MLH wrote:
<snip>
响应是一个ASP对象。

http://psacake.com/web/gz.asp
Response is an ASP object.

http://psacake.com/web/gz.asp



嗯,那就是哪里它结束了我。我对ASP一无所知。
也许我可以在VBA中做些什么来模仿Response对象所做的事情。你提供的链接说它用于将输出发送回客户端(浏览器)。将会更多地使用它。



Well, that''s where it ends for me. I know nothing of ASP.
Perhaps there''s something I can do in VBA that will emulate
what the Response object does. The link you furnished said
its used to send the output back to the client (browser). Will
play around with it some more.




您发布的代码应该在Web服务器上运行。


3Guys-from-whereever网站是一个ASP资源网站。你找到的任何内容很可能都是用vbscript编写的,并且意味着
成为Web应用程序的一部分。这并不是说你不能用它来b / b
作为你正在做的事情的参考。只是它不会是一个

剪切和粘贴,而不是一点点了解你的b
$ b切割和粘贴场景类型。


我会请你解释你想要做的wtf,但那不是你的风格。



The code you posted is meant to be run on a web server.

The 3Guys-from-whereever site is an ASP resource website. Anything
you find there will most likely be written in vbscript and meant
to be part of a web application. That''s not to say you can''t use it
as a reference for whatever you''re doing. Just that it won''t be a
cut and paste without a small measure of understanding what you''re
cutting and pasting type of scenario.

I''d ask you to explain wtf you''re trying to do, but that''s not
your style.


这篇关于我不确定我是否理解Response.buffer的真正含义的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆