Microsoft Knowledge Base Article
This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved.
Terms
of Use |
Trademarks
Article ID: 272862 - Last Review: May 8, 2001 - Revision: 1.0
PRB: Use of the <SCRIPT> Tag in the Global.asa File
This article was previously published under Q272862
The
Application and
Session event procedures in the Global.asa file of an Active Server Pages (ASP) application might not fire when the code is enclosed within <SCRIPT></SCRIPT> tags.
The
RUNAT attribute of the SCRIPT tag has not been set to "Server" to indicate that the enclosed code is script that needs to be run on the Web server.
Specify the
RUNAT attribute in the SCRIPT tag and set its value to "Server". Also, you can substitute the SCRIPT tag with <% %> tags.
This behavior is by design.
Here is an example of a <SCRIPT> tag, which specifies the
RUNAT attribute:
<SCRIPT Language="VBScript" RUNAT="Server">
'Code that implements the Session and Application event procedures
</SCRIPT>
The following would be equivalent:
<%
'Code that implements the Session and Application event procedures
%>
APPLIES TO
- Microsoft Active Server Pages 4.0
Retired KB Content DisclaimerThis article was written about products for which Microsoft no longer offers support. Therefore, this article is offered "as is" and will no longer be updated.
Community Feedback System
Very often, it takes hours to solve a problem. Very often, you've looked high
and low, and have tried a lot of solutions. When you finally found it, chances
are, it was because someone else helped you. Here's your chance to give back.
Use our community feedback tool to let others know what worked for you and what
didn't.
Please also understand that the community feedback system is not warranted to be
correct, it's simply a system that we've built to let people try and help each
other. If something in a feedback response doesn't make sense to you, or you're
not comfortable making changes that the feedback talks about (like registry
edits), please consult a professional.
Thank you for using kbAlertz.com Feedback System.
-- Scott Cate