Cisco Unified Application Environment Developer Forums

« Back to Developers

QueryParamCollection

Combination View Flat View Tree View
Threads [ Previous | Next ]
How do I get the query options using Java or CSharp.
 
initialize a QueryParamCollection with this event parameter, in order to access the useful utilities found in the QueryParamCollection type
 
I can get the options.query, but I passing more than 1 paramater from the web and need to know the value of each specific one in my application.
 
Thanks
Tim

RE: QueryParamCollection
queryparamcollection
Answer
5/21/09 12:00 AM as a reply to Timothy Redekop.
Timothy,
You can use the GetNameAt( System.Int32 ) method and this[ System.Int32 ] indexer to determine the name and value of each query parameter on the QueryParamCollection variable.

Tim,
 
     If you are using the Designer, you may refer to API guide for guidance on QueryParamCollection options [http://developer.cisco.com/static/cuae/2.4/2.4.1/Designer/Metreos.Types.Http.QueryParamCollection.html].
 
     For 2.5, please refer to the following link:
[http://developer.cisco.com/static/cuae/2.5/2.5.1SR1/Designer/Metreos.Types.Http.QueryParamCollection.html]
 

If you are using C# you can also look at System.Web.HttpUtility.ParseQueryString.
It returns a NameValueCollection Just like the QueryParamCollection does in the designer.