<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType
namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="State"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="City"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="Street"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="address"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="country-region"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="place"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:"Comic Sans MS";
panose-1:3 15 7 2 3 3 2 2 2 4;}
@font-face
{font-family:Verdana;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:"Trebuchet MS";
panose-1:2 11 6 3 2 2 2 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:blue;
text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
{margin:0cm;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";}
p
{mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman";}
span.EmailStyle18
{mso-style-type:personal-reply;
font-family:Arial;
color:navy;}
@page Section1
{size:612.0pt 792.0pt;
margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
{page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=EN-US link=blue vlink=blue>
<div class=Section1>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>William,<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> I’m not sure, but think I
know what is happening on the example you supplied, as I do the same thing. In
order to suppress the path information normally visible in the browser address
bar, the developer has implemented a simple ASP script which passes the
mapserver arguments through. Below is the script I use, which I got from either
this list, or one of the Mapserver support sites (can’t remember, but I’m
not taking credit….).<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Hope this helps explain a bit, but I don’t
think it is actually what you want to do; I think you are looking to build the
map file on the fly, correct?<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><%<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> Server.ScriptTimeout = 360<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> Select Case
Request.ServerVariables("REQUEST_METHOD")<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> Case "GET" strRequest =
Request.QueryString<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> Case "POST" strRequest =
Request.Form<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> End Select<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> strURL = "http://web.address/mapserv.exe?map=C:\path\to\mapfile\map.map&"
& strRequest<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> Dim objHTTP<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> Set objHTTP =
Server.CreateObject("MSXML2.ServerXMLHTTP")<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> objHTTP.open "GET", strURL,
false<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> objHTTP.send ""<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> Response.ContentType =
objHTTP.getResponseHeader("content-type")<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> Response.BinaryWrite
objHTTP.responseBody<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> Set objHTTP = Nothing<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>%><o:p></o:p></span></font></p>
<div>
<p><font size=3 color=navy face="Comic Sans MS"><span style='font-size:12.0pt;
font-family:"Comic Sans MS";color:navy'>Timothy Pascoe</span></font><font
color=navy><span style='color:navy'> <br>
</span></font><font size=1 color=navy face="Comic Sans MS"><span
style='font-size:7.5pt;font-family:"Comic Sans MS";color:navy'>Environmental
Systems Scientist</span></font><font color=navy><span style='color:navy'> <br>
<br>
</span></font><font size=2 color=purple face=Verdana><span style='font-size:
10.0pt;font-family:Verdana;color:purple'>Environment <st1:country-region w:st="on">Canada</st1:country-region>
/ Environnement <st1:place w:st="on"><st1:country-region w:st="on">Canada</st1:country-region></st1:place><br>
<st1:place w:st="on"><st1:country-region w:st="on">Canada</st1:country-region></st1:place>
Centre for Inland Waters / Centre Canadien des Eaux Intérieures<br>
<st1:Street w:st="on"><st1:address w:st="on">867 Lakeshore Road</st1:address></st1:Street>
/ 867, chemin Lakeshore<br>
<st1:City w:st="on">Burlington</st1:City>, <st1:State w:st="on">Ontario</st1:State>
/ <st1:City w:st="on">Burlington</st1:City> (<st1:place w:st="on"><st1:State
w:st="on">Ontario</st1:State></st1:place>)</span></font><font color=navy><span
style='color:navy'> <br>
</span></font><font size=2 color=purple face=Verdana><span style='font-size:
10.0pt;font-family:Verdana;color:purple'>L7R 4A6<br>
<br>
</span></font><font size=2 color=green face="Trebuchet MS"><span
style='font-size:10.0pt;font-family:"Trebuchet MS";color:green'>Tel/Tél: (905)
336-6239<br>
Fax/</span></font><font size=2 color=green face="Trebuchet MS"><span
lang=EN-CA style='font-size:10.0pt;font-family:"Trebuchet MS";color:green'>Téléc</span></font><font
size=2 color=green face="Trebuchet MS"><span style='font-size:10.0pt;
font-family:"Trebuchet MS";color:green'>: (905) 336-4699<br>
E-mail/C. élec: </span></font><font color=navy><span style='color:navy'><a
href="mailto:tim.pascoe@ec.gc.ca"><font size=2 face="Trebuchet MS"><span
style='font-size:10.0pt;font-family:"Trebuchet MS"'>tim.pascoe@ec.gc.ca</span></font></a><br>
</span></font><font size=2 color=navy face=Tahoma><span lang=EN-CA
style='font-size:10.0pt;font-family:Tahoma;color:navy'>Government of
Canada/Gouvernement du Canada</span></font><font color=navy><span
style='color:navy'> <br>
</span></font><i><font size=1 color=gray face="Comic Sans MS"><span
style='font-size:7.5pt;font-family:"Comic Sans MS";color:gray;font-style:italic'>This
e-mail represents the opinions and views solely held by its author and in no
manner may be considered as representing those of his/her employer.</span></font></i><o:p></o:p></p>
</div>
<div>
<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>
<hr size=2 width="100%" align=center tabindex=-1>
</span></font></div>
<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> UMN MapServer
Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU] <b><span style='font-weight:
bold'>On Behalf Of </span></b>william paul<br>
<b><span style='font-weight:bold'>Sent:</span></b> September 29, 2006 8:37 AM<br>
<b><span style='font-weight:bold'>To:</span></b> MAPSERVER-USERS@LISTS.UMN.EDU<br>
<b><span style='font-weight:bold'>Subject:</span></b> [UMN_MAPSERVER-USERS]
replace MAP extension with ASPX or ASP</span></font><o:p></o:p></p>
</div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Hello:<o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> <o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Is it possible to replace the map extension with aspx or asp? I have
seen an example (<a href="http://www2.tetonwyo.org/mapserver/">http://www2.tetonwyo.org/mapserver/</a>)
where the map file is called map.asp. I tried to create an aspx file like:<o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> <o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><%Response.Write ("Map")%>.....and all the line for a
map file, but when I try to replace the <a
href="http://localhost/scripts/mapserv.exe?map=map.map">http://localhost/scripts/mapserv.exe?map=map.map</a>....
with <a href="http://localhost/scripts/mapserv.exe?map=map.aspx">http://localhost/scripts/mapserv.exe?map=map.aspx</a>
I get an regualar expression error<o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> <o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>I want to be use ASPX or ASP to create the lines code from a basic map
file<o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> <o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Does anyone can give me an example?<o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> <o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Thank you<o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> <o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>William<o:p></o:p></span></font></p>
</div>
<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'> <o:p></o:p></span></font></p>
<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>
<hr size=1 width="100%" align=center>
</span></font></div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Get your own <a
href="%20http://us.rd.yahoo.com/evt=43290/*http:/smallbusiness.yahoo.com/domains">web
address for just $1.99/1st yr</a>. We'll help. <a
href="http://us.rd.yahoo.com/evt=41244/*http:/smallbusiness.yahoo.com/">Yahoo!
Small Business</a>. <o:p></o:p></span></font></p>
</div>
</body>
</html>