Problem:
Whenever an event is triggered on an ASP.NET Web page, the run-time system will automatically invoke the associated COBOL event handler method while also passing the required event handling parameters within the call.
Resolution:
The actual parameters that will be passed depend on the type of the event but in most cases the event handling method will be generated as follows:
method-id. "Page_Load" is private.
local-storage section.
linkage section.
01 param-sender class-sysobject.
01 param-e class-eventargs.
procedure division using by value param-sender param-e.
There are two parameters that are passed to the Page_Load event. The first one is "param-sender" which will contain the object that fired the event. This could reference a Button control on the current page. The second parameter is "param-e" which will contain an instance of the "System.EventArg" class. The content and type of the event argument depends on the actual event object which is contained in "param-sender".
Both of these parameters can be queried for their values.




