INFO: Only 1 Space Allowed Around the RESX STAGE_SCRIPT Staging Tags (313215)



The information in this article applies to:

  • Microsoft Content Management Server 2001

This article was previously published under Q313215

SUMMARY

When you use the RESX Active Server Pages (ASP) staging tags, you must leave only 1 space between the RESX tags and the comment delimiters.

MORE INFORMATION

In Resolution versions 4.0 and earlier, the RESX tags function correctly if you leave more than 1 space between the tags and the comment delimiters. However, if you leave more than 1 space between the RESX tags and any of the 4 comment delimiters in Content Management Server (CMS) 2001, the page is staged as an .htm file, and the code is run instead of protected.

The following is an example of incorrect code:

   <!--   RESX STAGE_SCRIPT   -->
   <%
   Response.Write "More than one space "
   %>
   <!--   /RESX STAGE_SCRIPT   -->
				
The following is an example of correct code:
   <!-- RESX STAGE_SCRIPT -->
   <%
   Response.Write "Only 1 space"
   %>
   <!-- /RESX STAGE_SCRIPT -->
				
NOTE: This code sample assumes that you are running the Microsoft Visual Basic Scripting Edition (VBScript) version 5.0 engine on the Internet Information Services (IIS) server.

REFERENCES

For more information on staging ASP, see Chapter 10 ("Developing for MSCMS 2001 Site Stager") in the CMS 2001 Site Programmer's Guide.

Modification Type:MajorLast Reviewed:11/30/2001
Keywords:kbinfo KB313215