<div>Tim:</div>  <div>Yes I want to build the map file on the fly using ASPX This way I can manage better some of the mapserver varibles</div>  <div>&nbsp;</div>  <div>Thank you for your answer</div>  <div>&nbsp;</div>  <div>William<BR><BR><B><I>"Pascoe,Tim [Burlington]" &lt;Tim.Pascoe@ec.gc.ca&gt;</I></B> wrote:</div>  <BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">  <META content="Microsoft Word 11 (filtered medium)" name=Generator>  <STYLE>  v\:* {behavior:url(#default#VML);}  o\:* {behavior:url(#default#VML);}  w\:* {behavior:url(#default#VML);}  .shape {behavior:url(#default#VML);}  </STYLE>  <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:SmartTagType name="State" namespaceuri="urn:schemas-microsoft-com:office:smarttags"></o:SmartTagType><o:SmartTagType name="City" namespaceuri="urn:schemas-microsoft-com:office:smarttags"></o:SmartTagType><o:SmartTagType name="Street"
 namespaceuri="urn:schemas-microsoft-com:office:smarttags"></o:SmartTagType><o:SmartTagType name="address" namespaceuri="urn:schemas-microsoft-com:office:smarttags"></o:SmartTagType><o:SmartTagType name="country-region" namespaceuri="urn:schemas-microsoft-com:office:smarttags"></o:SmartTagType><o:SmartTagType name="place" namespaceuri="urn:schemas-microsoft-com:office:smarttags"></o:SmartTagType>  <STYLE>  st1\:*{behavior:url(#default#ieooui) }  </STYLE>    <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>    <DIV class=Section1>  <div class=MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">William,<o:p></o:p></SPAN></FONT></div>  <div class=MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT></div>  <div
 class=MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 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></div>  <div class=MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT></div>  <div class=MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">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></div>  <div class=MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT></div>  <div class=MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">&lt;%<o:p></o:p></SPAN></FONT></div>  <div class=MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp; Server.ScriptTimeout = 360<o:p></o:p></SPAN></FONT></div>  <div class=MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp; <o:p></o:p></SPAN></FONT></div>  <div class=MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp; Select Case
 Request.ServerVariables("REQUEST_METHOD")<o:p></o:p></SPAN></FONT></div>  <div class=MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Case "GET"&nbsp; strRequest = Request.QueryString<o:p></o:p></SPAN></FONT></div>  <div class=MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Case "POST" strRequest = Request.Form<o:p></o:p></SPAN></FONT></div>  <div class=MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp; End Select<o:p></o:p></SPAN></FONT></div>  <div class=MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp; <o:p></o:p></SPAN></FONT></div>  <div class=MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy;
 FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp; strURL = "http://web.address/mapserv.exe?map=C:\path\to\mapfile\map.map&amp;" &amp; strRequest<o:p></o:p></SPAN></FONT></div>  <div class=MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp; <o:p></o:p></SPAN></FONT></div>  <div class=MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp; Dim objHTTP<o:p></o:p></SPAN></FONT></div>  <div class=MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp; Set objHTTP = Server.CreateObject("MSXML2.ServerXMLHTTP")<o:p></o:p></SPAN></FONT></div>  <div class=MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp; objHTTP.open "GET", strURL, false<o:p></o:p></SPAN></FONT></div>  <div class=MsoNormal><FONT
 face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp; objHTTP.send ""<o:p></o:p></SPAN></FONT></div>  <div class=MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp; Response.ContentType = objHTTP.getResponseHeader("content-type")<o:p></o:p></SPAN></FONT></div>  <div class=MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp; Response.BinaryWrite objHTTP.responseBody<o:p></o:p></SPAN></FONT></div>  <div class=MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp; Set objHTTP = Nothing<o:p></o:p></SPAN></FONT></div>  <div class=MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">%&gt;<o:p></o:p></SPAN></FONT></div>  <DIV>  <div><FONT face="Comic
 Sans MS" color=navy size=3><SPAN style="FONT-SIZE: 12pt; COLOR: navy; FONT-FAMILY: 'Comic Sans MS'">Timothy Pascoe</SPAN></FONT><FONT color=navy><SPAN style="COLOR: navy"> <BR></SPAN></FONT><FONT face="Comic Sans MS" color=navy size=1><SPAN style="FONT-SIZE: 7.5pt; COLOR: navy; FONT-FAMILY: 'Comic Sans MS'">Environmental Systems Scientist</SPAN></FONT><FONT color=navy><SPAN style="COLOR: navy"> <BR><BR></SPAN></FONT><FONT face=Verdana color=purple size=2><SPAN style="FONT-SIZE: 10pt; COLOR: purple; FONT-FAMILY: Verdana">Environment <?xml:namespace prefix = st1 ns = "urn:schemas-microsoft-com:office:smarttags" /><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 face=Verdana color=purple size=2><SPAN style="FONT-SIZE: 10pt; COLOR: purple; FONT-FAMILY: Verdana">L7R 4A6<BR><BR></SPAN></FONT><FONT face="Trebuchet MS" color=green size=2><SPAN style="FONT-SIZE: 10pt; COLOR: green; FONT-FAMILY: 'Trebuchet MS'">Tel/Tél: (905) 336-6239<BR>Fax/</SPAN></FONT><FONT face="Trebuchet MS" color=green size=2><SPAN lang=EN-CA style="FONT-SIZE: 10pt; COLOR: green; FONT-FAMILY: 'Trebuchet MS'">Téléc</SPAN></FONT><FONT face="Trebuchet MS" color=green size=2><SPAN style="FONT-SIZE: 10pt; COLOR: green; FONT-FAMILY: 'Trebuchet MS'">: (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 face="Trebuchet MS" size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Trebuchet MS'">tim.pascoe@ec.gc.ca</SPAN></FONT></A><BR></SPAN></FONT><FONT face=Tahoma color=navy size=2><SPAN lang=EN-CA style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Tahoma">Government of Canada/Gouvernement du Canada</SPAN></FONT><FONT color=navy><SPAN style="COLOR: navy"> <BR></SPAN></FONT><I><FONT face="Comic Sans MS" color=gray size=1><SPAN style="FONT-SIZE: 7.5pt; COLOR: gray; FONT-STYLE: italic; FONT-FAMILY: 'Comic Sans MS'">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></div></DIV>  <DIV>  <DIV class=MsoNormal style="TEXT-ALIGN: center" align=center><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt">  <HR tabIndex=-1 align=center width="100%" SIZE=2> 
 </SPAN></FONT></DIV>  <div class=MsoNormal><B><FONT face=Tahoma size=2><SPAN style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">From:</SPAN></FONT></B><FONT face=Tahoma size=2><SPAN style="FONT-SIZE: 10pt; 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></div></DIV>  <div class=MsoNormal><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt"><o:p>&nbsp;</o:p></SPAN></FONT></div>  <DIV>  <div class=MsoNormal><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt">Hello:<o:p></o:p></SPAN></FONT></div></DIV>  <DIV>  <div
 class=MsoNormal><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt">&nbsp;<o:p></o:p></SPAN></FONT></div></DIV>  <DIV>  <div class=MsoNormal><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt">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></div></DIV>  <DIV>  <div class=MsoNormal><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt">&nbsp;<o:p></o:p></SPAN></FONT></div></DIV>  <DIV>  <div class=MsoNormal><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt">&lt;%Response.Write ("Map")%&gt;.....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></div></DIV>  <DIV>  <div class=MsoNormal><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt">&nbsp;<o:p></o:p></SPAN></FONT></div></DIV>  <DIV>  <div class=MsoNormal><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt">I want to be use ASPX or ASP to create the lines code from a basic map file<o:p></o:p></SPAN></FONT></div></DIV>  <DIV>  <div class=MsoNormal><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt">&nbsp;<o:p></o:p></SPAN></FONT></div></DIV>  <DIV>  <div class=MsoNormal><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt">Does anyone can give me an example?<o:p></o:p></SPAN></FONT></div></DIV>  <DIV>  <div class=MsoNormal><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt">&nbsp;<o:p></o:p></SPAN></FONT></div></DIV>  <DIV> 
 <div class=MsoNormal><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt">Thank you<o:p></o:p></SPAN></FONT></div></DIV>  <DIV>  <div class=MsoNormal><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt">&nbsp;<o:p></o:p></SPAN></FONT></div></DIV>  <DIV>  <div class=MsoNormal><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt">William<o:p></o:p></SPAN></FONT></div></DIV>  <div><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt">&nbsp; <o:p></o:p></SPAN></FONT></div>  <DIV class=MsoNormal style="TEXT-ALIGN: center" align=center><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt">  <HR align=center width="100%" SIZE=1>  </SPAN></FONT></DIV>  <div class=MsoNormal><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt">Get your own <A href="http://us.f424.mail.yahoo.com/ym/%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></div></DIV></BLOCKQUOTE><BR><p>&#32;
        
                <hr size=1>Get your own <a href=" http://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>.