Ticket #195 (closed defect: fixed)
Request.QueryString Returns Null or Nothing Parameters
| Reported by: | bberdel | Owned by: | madair |
|---|---|---|---|
| Priority: | P2 | Milestone: | 2.0 |
| Component: | Core | Version: | 1.1.0 |
| Severity: | Major | Keywords: | parameter querystring |
| Cc: | External ID: | ||
| state: | New | Browser: | All |
| Operating System: | All |
Description
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();
}

