DOCUMENT:Q224963 29-OCT-2000 [iis] TITLE :Using Enhanced All code in the included page appears to the scripting engine as though it were between the tags. Therefore, unlike the #include directive, your included page should consist of raw code only. For example, consider the following #include statement: This statement would need to include a page similar to the following: <% For X = 1 To 5 Response.Write "

Howdy!

" Next %> Now consider the following This page would need to include a page similar to the following: For X = 1 To 5 Response.Write "

Howdy!

" Next The Note: No actual code should placed between the tags in the parent page, as it will be ignored. The SRC attribute can use either relative or virtual paths, as shown in the following table: +-------------------------------------+ | Path Style | Example Syntax | +-------------------------------------+ | Relative | SRC="file.ext" | +-------------------------------------+ | Relative | SRC="folder\file.ext" | +-------------------------------------+ | Virtual | SRC="\folder\file.ext" | +-------------------------------------+ | Virtual | SRC="/folder/file.ext" | +-------------------------------------+ The following ASP code demonstrates how to use the new 2. Save the following code as "Server.inc" to the same folder: Dim strMessage strMessage = Request.QueryString("Message") If strMessage <> "" Then Response.Write vbCrLf & "" End If 3. Next, save the following code as "client.inc" to the same folder: function showMessage(strText) { alert(strText) } Notes: - When you first browse "ScriptTest.asp," the form is displayed and the client-side function is not called. - When you submit text to the page, the server-side script outputs another client-side function that displays the submitted text in the form's input box and in a pop-up window. Additional query words: ====================================================================== Keywords : Technology : kbiisSearch kbiis500 Version : :5.0 Issue type : kbhowto ============================================================================= THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY. Copyright Microsoft Corporation 2000.