不总是找到包含的功能。 [英] Included function not always found.

查看:62
本文介绍了不总是找到包含的功能。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在包含中有一个功能。页面。


由于我不知道的原因,我经常会收到错误 - 效果

该功能无法找到。


如果我点击刷新/ F5它会加载页面就好了。


它不会经常发生...也许每50页一次。它也不会在任何特定页面上发生



我会显示代码,但它与它们无关功能或任何

特定页面。


Asp加载包含之间是否有任何延迟?和

处理页面的其余部分?我想知道函数是否在包含被拉入之前调用了




谢谢

TomB

I have a function on an "included" page.

For reasons unknown to me I frequently will get an error - to the effect
that the function can''t be found.

If I hit refresh/F5 it loads the page just fine.

It doesn''t happen often .. maybe once every 50 pages. It also doesn''t
happen on any specific page.

I''d show code, but it''s not really related to either the function or any
specific page.

Is there any sort of a delay between Asp loading the "includes" and
processing the rest of the page? I''m wondering if the function is getting
called before the include is pulled in.

Thanks
TomB

推荐答案

" TomB"在留言新闻中写道:e3 ************* @ TK2MSFTNGP11.phx.gbl ...

:我有一个包含的功能页面。



:由于我不知道的原因,我经常会收到错误 - 效果

:该函数可以''找不到。



:如果我点击刷新/ F5就加载页面就好了。



:它不会经常发生..可能每50页一次。它也没有b $ b:发生在任何特定页面上。



:我会显示代码,但它''与功能或任何

:特定页面无关。



:Asp加载之间是否存在任何延迟包括和

:处理页面的其余部分?我想知道函数是否正在获取

:在包含被拉入之前调用。


听起来像。你想在页面完全装满

之前调用这个功能吗?


-

Roland Hall
/ *这些信息的分发是希望它有用,但

没有任何保证;甚至没有适销性的暗示保证

或特定用途的适用性。 * /

Technet脚本中心 - http:// www .microsoft.com / technet / scriptcenter /

WSH 5.6文档 - http://msdn.microsoft.com/downloads/list/webdev.asp

MSDN Library - http://msdn.microsoft.com/library/default.asp
"TomB" wrote in message news:e3*************@TK2MSFTNGP11.phx.gbl...
: I have a function on an "included" page.
:
: For reasons unknown to me I frequently will get an error - to the effect
: that the function can''t be found.
:
: If I hit refresh/F5 it loads the page just fine.
:
: It doesn''t happen often .. maybe once every 50 pages. It also doesn''t
: happen on any specific page.
:
: I''d show code, but it''s not really related to either the function or any
: specific page.
:
: Is there any sort of a delay between Asp loading the "includes" and
: processing the rest of the page? I''m wondering if the function is getting
: called before the include is pulled in.

Sounds like. Are you trying to call for the function before the page is
fully loaded?

--
Roland Hall
/* This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose. */
Technet Script Center - http://www.microsoft.com/technet/scriptcenter/
WSH 5.6 Documentation - http://msdn.microsoft.com/downloads/list/webdev.asp
MSDN Library - http://msdn.microsoft.com/library/default.asp


Roland Hall写道:
Roland Hall wrote:
...我想知道该功能是否在
include被拉之前被调用in。
...I''m wondering if the function is getting called before the
include is pulled in.



听起来像。你是否试图在页面
完全加载之前调用该函数?



Sounds like. Are you trying to call for the function before the page
is fully loaded?




如果这确实是一个ASP问题(而不是客户端),这不应该发生b $ b。在其他任何事情发生之前处理#include指令,

并解析整个脚本,建立命名空间。功能得到

特殊待遇 - 它们可以从任何地方调用,甚至可以从

首先执行的块中调用。


我是非常感兴趣地看这个帖子,因为它暗示了一个真正的IIS

bug。

-

Dave Anderson

未经请求的商业电子邮件将以每封邮件



If this is truly an ASP issue (rather than client-side), this should not
happen. The #include directive is processed before anything else happens,
and the whole script is parsed, establishing the namespace. Functions get
special treatment -- they can be called from anywhere, even from blocks that
execute first.

I am watching this thread with great interest, as it suggests a real IIS
bug.
--
Dave Anderson

Unsolicited commercial email will be read at a cost of


500的费用阅读。使用

此电子邮件地址即表示同意这些条款。请不要直接联系

我或要求我直接与您联系以获取帮助。如果您的

问题值得询问,那就值得发帖。
500 per message. Use
of this email address implies consent to these terms. Please do not contact
me directly or ask me to contact you directly for assistance. If your
question is worth asking, it''s worth posting.


这篇关于不总是找到包含的功能。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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