ASP wrapper and HTTP GET requests

Morten Nielsen morten at DOTNETGIS.NET
Wed Feb 23 15:24:05 PST 2005


>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