关于持久性的一般问题 [英] General question about persistence

查看:82
本文介绍了关于持久性的一般问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

或者...脚本何时不是脚本?


我有几个模块用于管理我们俱乐部网站的不同方面,

大多数是多页的。


设置第一页开头的服务器.ScriptTimeout或response.buffer值

在整个会议期间,还是他们

" reset"每个功能或子等等?


TIA。


-

Neil Gould
------------------------------

Terra Tu AV - www.terratu.com

Technical Graphics&媒体

Or... when is a script not a script?

I have several modules for managing different aspects of our club''s website,
most of which are multi-page.

Does setting such things as server.ScriptTimeout or response.buffer values
at the start of the first page persist throughout the session, or are they
"reset" with each function or sub, etc.?

TIA.

--
Neil Gould
------------------------------
Terra Tu AV - www.terratu.com
Technical Graphics & Media

推荐答案

Neil Gould写道:
Neil Gould wrote:

或者......什么时候是剧本不是剧本?


我有几个模块用于管理我们俱乐部的b
网站的不同方面,其中大部分都是多页的。 />

设置第一页开头的server.ScriptTimeout或response.buffer

值会在整个会话期间持续存在,

或他们是否重置每个函数或子等等?
Or... when is a script not a script?

I have several modules for managing different aspects of our club''s
website, most of which are multi-page.

Does setting such things as server.ScriptTimeout or response.buffer
values at the start of the first page persist throughout the session,
or are they "reset" with each function or sub, etc.?



Response.Buffer仅适用于调用它的页面。并且

不会受到

页面上运行的函数或子函数的影响。

我认为这同样适用于Server.ScriptTimeout ...这些文档没有明确地说明了,但是很容易就可以掀起几页,

第一个将ScriptTimeout设置为一些大号和

秒检查设置。


-

Microsoft MVP - ASP / ASP。 NET

请回复新闻组。我的From

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

Response.Buffer applies only to the page in which it is called. And it
is not something that is affected by functions or subs running on the
page.
I think the same applies to Server.ScriptTimeout ... the docs don''t say
so explicitly, but it would be easy enough to whip up a couple pages,
the first of which sets the ScriptTimeout to some large number and the
second of which checks the setting.

--
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 Barrows [MVP]于2008年7月21日在
中写道
microsoft.public.inetserver.asp.general:
Bob Barrows [MVP] wrote on 21 jul 2008 in
microsoft.public.inetserver.asp.general:

Response.Buffer仅适用于调用它的页面。并且

不会受到

页面上运行的函数或子函数的影响。

我认为这同样适用于Server.ScriptTimeout ...这些文档没有明确地说明了,但是很容易就可以掀起几页,

第一个将ScriptTimeout设置为一些大号和

秒检查设置。
Response.Buffer applies only to the page in which it is called. And it
is not something that is affected by functions or subs running on the
page.
I think the same applies to Server.ScriptTimeout ... the docs don''t say
so explicitly, but it would be easy enough to whip up a couple pages,
the first of which sets the ScriptTimeout to some large number and the
second of which checks the setting.



从以下情况来看似乎符合逻辑:


响应和请求对象的属性是页面宽的,

Session对象的属性是会话范围的,

Application对象的属性是应用程序范围的,


Server对象的属性应该是服务器范围广,

所以,[因为ASP是手边的应用程序,

而不是物理服务器,]

实际上只是应用程序也很宽?


但是我不记得曾经抓住了MS

完全符合规格,

甚至建造他们的规格说什么,

所以测试将是布丁的味道,

并且阅读规格是平庸的第二选择?


-

Evertjan。

荷兰。

(请将x''es更改为我的电子邮件地址中的点数)

It seems to stand to logic that since:

Properties of the Response and Request objects are page wide,
properties of the Session object are session wide,
properties of the Application object are application wide,

properties of the Server object should be server wide,
so, [since ASP is the application at hand,
and not the physical server,]
in fact just application wide, too?

However I do not remember having caught MS
being completely logical in specs,
or even building exactly what their specs say,
so the test would be the taste of the pudding,
and reading the specs a mediocre second choice?

--
Evertjan.
The Netherlands.
(Please change the x''es to dots in my emailaddress)


response.buffer:表示当前是否为p年龄输出被缓冲。


server.ScriptTimeout:ScriptTimeout属性指定应用程序中任何脚本在终止之前运行的最长时间。
response.buffer : Indicates whether the current page output is buffered.

server.ScriptTimeout : The ScriptTimeout property specifies the maximum amount of time any script in the application can run before
it is terminated.


这篇关于关于持久性的一般问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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