ASP wrapper and HTTP GET requests
Ed McNierney
ed at TOPOZONE.COM
Wed Feb 23 15:51:52 PST 2005
Morten -
I forgot to mention that if you want to avoid typing, just
Request ("pidn")
Will do the same job!
- Ed
-----Original Message-----
From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On
Behalf Of Ed McNierney
Sent: Wednesday, February 23, 2005 6:41 PM
To: MAPSERVER-USERS at LISTS.UMN.EDU
Subject: Re: [UMN_MAPSERVER-USERS] ASP wrapper and HTTP GET requests
Morten -
Yes, that works for individual variables (parameters), but as far as I
know you cannot easily do that for the whole querystring/form
collection, which is what's usually needed in a WMS "wrapper".
- Ed
Ed McNierney
TopoZone.com
-----Original Message-----
From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On
Behalf Of Morten Nielsen
Sent: Wednesday, February 23, 2005 6:24 PM
To: MAPSERVER-USERS at LISTS.UMN.EDU
Subject: Re: [UMN_MAPSERVER-USERS] ASP wrapper and HTTP GET requests
>This works for aspx (.NET) in C#, I'm not sure if it will be backward
>compatable.
>
>string pidn = (Request.ServerVariables["REQUEST_METHOD"] == "GET") ?
>Request.QueryString["pidn"] : Request.Form["pidn"];
You could just use the Request.Params instead, if you don't know whether
you
have a GET or a POST:
C#:
string pidn = Request.Params["pidn"];
VB.NET:
Dim pidn As String = Request.Params("pidn")
-----------------------------------------
Regards
Morten Nielsen
www.dotnetgis.net - OpenSource .NET GIS forum
More information about the MapServer-users
mailing list