Skip to main content

Problem:

Passing parameters to a COBOL.Net WebForms application using an URL:

http://testserver/testform.aspx?param1=TestValue

then accessing the parameters using the "request" object. In C# this can be done using syntax such as:

'string paramvalue = Request.Params["param1"];'.

How to access the parameters in COBOL?

Resolution:

Accessing the parameters using syntax such as:

     set ls-param to self::"Request"::"Params"::"Get"("param1")

A full example of this syntax is attached to this article.

Attachments:

2149995.zip

Old KB# 1276