[fusion-trac] #195: Request.QueryString Returns Null or Nothing
Parameters
Fusion
trac_fusion at osgeo.org
Wed Dec 17 13:13:17 EST 2008
#195: Request.QueryString Returns Null or Nothing Parameters
-----------------------+----------------------------------------------------
Reporter: bberdel | Owner: madair
Type: defect | Status: new
Priority: P2 | Milestone: 2.0
Component: Core | Version: 1.1.0
Severity: Major | Keywords: parameter querystring
External_id: | State: New
Browser: All | Os: All
-----------------------+----------------------------------------------------
In all previous versions of Fusion (before 1.1) I was able to use
request.querystring from the task frame to return parameters such as
MapName and SessionID. However this no returns an empty list and there
are no paramaters. I have also tried the code below.
NameValueCollection parameters;
if(Request.HttpMethod == "POST")
parameters = Request.Form;
else
parameters = Request.QueryString;
String mapName = GetParameter(parameters, "MAPNAME"); String session =
GetParameter(parameters, "SESSION");
_____________________________________________________________
Where the GetParameter method looks like this:
_____________________________________________________________
String GetParameter(NameValueCollection parameters, String name) {
String strval = parameters[name];
if (null == strval)
return "";
return strval.Trim();
}
--
Ticket URL: <http://trac.osgeo.org/fusion/ticket/195>
Fusion <http://trac.osgeo.org/fusion>
Fusion is a web-mapping application development framework for MapServer and MapGuide OS.
More information about the fusion-trac
mailing list