<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2627" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=012365215-16062005><FONT face=Arial 
color=#0000ff size=2>David -</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=012365215-16062005><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=012365215-16062005><FONT face=Arial 
color=#0000ff size=2>No, you can't do that.&nbsp; Your Web server will run one 
processor/handler for each page request.&nbsp; You're essentially trying to send 
*one* HTTP request to a CGI program, and then have the ASP output of that 
program treated as if it were an ASP source page, and run through the ASP 
processor.&nbsp; That's double-dipping.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=012365215-16062005><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=012365215-16062005><FONT face=Arial 
color=#0000ff size=2>However, most of the MapServer template functionality 
allows you to do pretty powerful things WITHOUT a scripting language.&nbsp; If 
you've already got a scripting language like ASP, you can just do those things 
in ASP.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=012365215-16062005><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=012365215-16062005><FONT face=Arial 
color=#0000ff size=2>The easiest way (IMHO) to do this is to have your ASP code 
generate the "template" output, and insert the appropriate IMG tags with SRC 
properties specifying MapServer CGI requests, like:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=012365215-16062005><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=012365215-16062005><FONT face=Arial 
color=#0000ff size=2>&lt;img 
src="mapserv.exe?mode=scalebar&amp;...."&gt;</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=012365215-16062005><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=012365215-16062005><FONT face=Arial 
color=#0000ff size=2>where you'd like to insert the scalebar in the output HTML 
generated by your ASP page.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=012365215-16062005><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=012365215-16062005><FONT face=Arial 
color=#0000ff size=2>&nbsp;&nbsp;&nbsp;&nbsp; - Ed</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=012365215-16062005><FONT face=Arial 
color=#0000ff size=2><FONT size=2></FONT></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=012365215-16062005><FONT face=Arial 
color=#0000ff size=2><FONT size=2>Ed McNierney<BR>President and Chief 
Mapmaker<BR>TopoZone.com / Maps a la carte, Inc.<BR>73 Princeton Street, Suite 
305<BR>North Chelmsford, MA&nbsp; 01863<BR>ed@topozone.com<BR>(978) 251-4242 
</FONT></DIV></FONT></SPAN><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> UMN MapServer Users List 
[mailto:MAPSERVER-USERS@LISTS.UMN.EDU] <B>On Behalf Of </B>David 
Shorthouse<BR><B>Sent:</B> Thursday, June 16, 2005 10:25 AM<BR><B>To:</B> 
MAPSERVER-USERS@LISTS.UMN.EDU<BR><B>Subject:</B> [UMN_MAPSERVER-USERS] ASP with 
server-side scripting in map template<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV><FONT face=Arial>
<DIV><SPAN class=571461314-16062005><FONT face=Arial>Hey 
folks,</FONT></SPAN></DIV>
<DIV><SPAN class=571461314-16062005><FONT face=Arial></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=571461314-16062005>&nbsp;&nbsp;&nbsp; <FONT face=Arial>Is it 
possible to include server-side vbscript on a map template? MapServer can use 
.asp as a map template, but nothing is done with the scripting I tried to 
include. In fact, if you look at the source of the resultant page, 
the&nbsp;vbscript is clearly visible. My problem is that I'm stuck with asp and 
there are a few things I would like to add to the map template that would be 
more efficient to do via vbscript than a MapServer layer.</FONT></SPAN></DIV>
<DIV><SPAN class=571461314-16062005><FONT face=Arial></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=571461314-16062005><FONT face=Arial>Thanks for any 
advice,</FONT></SPAN></DIV>
<DIV><SPAN class=571461314-16062005><FONT face=Arial></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=571461314-16062005><FONT 
face=Arial>David</FONT></SPAN></DIV></FONT></DIV></BODY></HTML>