Forum Moderators: open

Message Too Old, No Replies

non-vbs code in vbs file

can you include other code in a vbs file

         

TCwebteam

11:52 pm on Dec 15, 2010 (gmt 0)

10+ Year Member



Can you include the <% %> tags and have non-vbscript outside those tags in a .vbs file? I'm doing that now, and it seems to be working, but a (long) while back I seem to remember my pages choking if the <% %> tags were inside the .vbs file

I don't want to do something that might not work under some different circumstances. I expect that if it's okay with my IIS server then it's okay, as it is server side stuff.

EXAMPLE (contents of a .vbs include file):

<% function writethebluemenu %>

<table>
<tr>
<td>
<b><%=portletTitle%></b>
</td>
</tr>

<%
getfilename = Request.ServerVariables("SCRIPT_NAME")
getfilename = LCase(getfilename)
'etc, etc...
%>
<!-- more straight html.... -->

<%Next
end function%>

</table>

Ocean10000

3:50 pm on Dec 16, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



You are correct it will continue to work with IIS/ASP code server side. And this is not likely to change at this stage of the game.