服务器端的Request.Form变量集? [英] Server Side Set of Request.Form Variables?

查看:38
本文介绍了服务器端的Request.Form变量集?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我继承了一组我现在需要扩充的asp页面。在

为了尽量减少对生产代码的更改,我想做一个

" call"从新的asp页面到asp页面。现有代码使用

许多Request.Form变量,我非常不愿意更改此代码。新页面将检索我想要的数据

以填充旧代码中使用的Request.Form变量。


所以,是否可能让我从

asp页面中设置Request.Form变量,然后触发第二页使用这些变量作为

以及任何Request.Form变量传递到原来的

页面。另外,它应该全部发生在服务器上,客户端

只会在服务器完成后得到响应。


谢谢。 />
-Thomas

I have inherited a set of asp pages that I now need to augment. In
order to minimize changes to production code, I would like to make a
"call" to an asp page from a new asp page. Existing code is using
many Request.Form variables, and I would very much prefer not to
change this code. The new page will retrieve data that I would like
to fill into Request.Form variables that are used in the old code.

So, is it possible for me to set Request.Form variables from within an
asp page and then fire off a second page that uses those variables as
well as any Request.Form variables that were passed to the original
page. Additionaly, it should all occur on the server, and the client
would only get a response after all on the server is complete.

Thanks.
-Thomas

推荐答案

Thomas Lunsford写道:
Thomas Lunsford wrote:

我继承了一组我现在需要增加的asp页面。在

为了尽量减少对生产代码的更改,我想做一个

" call"从新的asp页面到asp页面。现有代码使用

许多Request.Form变量,我非常不愿意更改此代码。新页面将检索我想要的数据

以填充旧代码中使用的Request.Form变量。


所以,是否可能让我从

asp页面中设置Request.Form变量,然后触发第二页使用这些变量作为

以及任何Request.Form变量传递到原来的

页面。另外,它应该全部发生在服务器上,而客户端

只会在服务器完成后得到响应。
I have inherited a set of asp pages that I now need to augment. In
order to minimize changes to production code, I would like to make a
"call" to an asp page from a new asp page. Existing code is using
many Request.Form variables, and I would very much prefer not to
change this code. The new page will retrieve data that I would like
to fill into Request.Form variables that are used in the old code.

So, is it possible for me to set Request.Form variables from within an
asp page and then fire off a second page that uses those variables as
well as any Request.Form variables that were passed to the original
page. Additionaly, it should all occur on the server, and the client
would only get a response after all on the server is complete.



请注意,Request对象集合是只读的。


但是,您可以使用Server.Execute在另一个页面中执行代码


-

Microsoft MVP - ASP / ASP.NET

请回复新闻组。我的From

标题中列出的电子邮件帐户是我的垃圾邮件陷阱,因此我不经常检查它。通过发布到新闻组,您将获得更快的回复。

No. the Request object collections are readonly.

However, you can use Server.Execute to execute code in another page

--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don''t check it very often. You will get a
quicker response by posting to the newsgroup.


5月11日,下午12:18,Bob Barrows [MVP] ]" < reb01 ... @ NOyahoo.SPAMcom>

写道:
On May 11, 12:18 pm, "Bob Barrows [MVP]" <reb01...@NOyahoo.SPAMcom>
wrote:

Thomas Lunsford写道:
Thomas Lunsford wrote:

我继承了一组我现在需要增加的asp页面。在

为了尽量减少对生产代码的更改,我想做一个

" call"从新的asp页面到asp页面。现有代码使用

许多Request.Form变量,我非常不愿意更改此代码。新页面将检索我想要的数据,以填充旧代码中使用的Request.Form变量。

I have inherited a set of asp pages that I now need to augment. In
order to minimize changes to production code, I would like to make a
"call" to an asp page from a new asp page. Existing code is using
many Request.Form variables, and I would very much prefer not to
change this code. The new page will retrieve data that I would like
to fill into Request.Form variables that are used in the old code.


那么,我是否可以在

asp页面中设置Request.Form变量然后关闭第二页使用这些变量作为

以及传递给原始

页面的任何Request.Form变量。另外,它应该全部发生在服务器上,而客户端

只会在服务器完成后得到响应。
So, is it possible for me to set Request.Form variables from within an
asp page and then fire off a second page that uses those variables as
well as any Request.Form variables that were passed to the original
page. Additionaly, it should all occur on the server, and the client
would only get a response after all on the server is complete.



否.Request对象集合是只读的。


但是,您可以使用Server.Execute在另一个中执行代码页面


-

Microsoft MVP - ASP / ASP.NET

请回复新闻组。我的From

标题中列出的电子邮件帐户是我的垃圾邮件陷阱,因此我不经常检查它。通过发布到新闻组,您将获得更快的回复


No. the Request object collections are readonly.

However, you can use Server.Execute to execute code in another page

--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don''t check it very often. You will get a
quicker response by posting to the newsgroup.



Bob,感谢您的回复。我已经尝试了很多东西,并且它显示我需要在我的新页面上创建并填充一个表单,

被提交到另一页面。我想做这个服务器端

只。这可能吗?我已经尝试过ServerXMLHTTP,它可以很好地工作,但微软已经警告不要在IIS中使用它,因为它可以导致线程死锁。
导致线程死锁。所以,如果我能从服务器上执行提交,我认为我的问题就会解决。


-Thomas


Thomas Lunsford写道:
Thomas Lunsford wrote:

5月11日下午12:18,Bob Barrows [MVP]" < reb01 ... @ NOyahoo.SPAMcom>

写道:
On May 11, 12:18 pm, "Bob Barrows [MVP]" <reb01...@NOyahoo.SPAMcom>
wrote:

> Thomas Lunsford写道:
>Thomas Lunsford wrote:

>>我继承了一组我现在需要扩充的asp页面。为了尽量减少对生产代码的更改,我想做一个
呼叫。从新的asp页面到asp页面。现有的代码使用了很多Request.Form变量,我非常不愿意改变这段代码。新页面将检索我想要填充到旧代码中使用的Request.Form变量的数据。
>>I have inherited a set of asp pages that I now need to augment. In
order to minimize changes to production code, I would like to make a
"call" to an asp page from a new asp page. Existing code is using
many Request.Form variables, and I would very much prefer not to
change this code. The new page will retrieve data that I would like
to fill into Request.Form variables that are used in the old code.


>>那么,我是否可以在
asp页面中设置Request.Form变量然后关闭第二页使用那些
变量以及传递给原始页面的任何Request.Form变量。另外,它应该都发生在服务器上,
并且客户端只会在服务器完成后得到响应。
>>So, is it possible for me to set Request.Form variables from within
an asp page and then fire off a second page that uses those
variables as well as any Request.Form variables that were passed to
the original page. Additionaly, it should all occur on the server,
and the client would only get a response after all on the server is
complete.


不。请求对象集合是只读的。

然而,您可以使用Server.Execute在另一个页面中执行代码


No. the Request object collections are readonly.

However, you can use Server.Execute to execute code in another page



鲍勃,谢谢你答复。我已经尝试了很多东西,并且它显示我需要在我的新页面上创建并填充一个表单,

被提交到另一页面。我想做这个服务器端

只。这可能吗?我已经尝试过ServerXMLHTTP,它可以很好地工作,但微软已经警告不要在IIS中使用它,因为它可以导致线程死锁。
导致线程死锁。


Bob, Thanks for the reply. I have tried a number of things, and it
appears that I need to create and populate a form on my new page that
gets submitted to the other page. I would like to do this server side
only. Is this possible? I have tried ServerXMLHTTP, and which works
great, but Microsoft has warned against using it in IIS because it can
cause thread deadlocking.



你能提供一个引用吗?我知道他们建议不要在服务器端代码中使用

XMLHTTPRequest对象,但我从未见过使用设计的XMLHTTPServer对象的

警告/>
将在IIS环境中使用。

-

Microsoft MVP - ASP / ASP.NET

请回复新闻组。我的From

标题中列出的电子邮件帐户是我的垃圾邮件陷阱,因此我不经常检查它。通过发布到新闻组,您将获得更快的回复。

Could you provide a citation for this? I know they advise against using
the XMLHTTPRequest object in server-side code, but I''ve never seen an
admonishment against using the XMLHTTPServer object which was designed
to be used in the IIS environment.
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don''t check it very often. You will get a
quicker response by posting to the newsgroup.


这篇关于服务器端的Request.Form变量集?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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