Problem:
Example of an Active Server Page (ASP) calling a COBOL COM object
Resolution:
INTRODUCTION
==========
This HTML form illustrates the use of JavaScript on some ActiveX controls.
SOURCE FILES:
==========
Program Files Description
------------------------ -----------------------------------------------------------
ASPtoCOBOL.APP NetExpress project file
aspserver.CBL COBOL source code aspserver
Trigger.CBL COBOL source code aspserver
Server.REG Registry file
Object Files
------------------------ -----------------------------------------------------------
DLLSERVER.OBJ Object file (resolved from $LIB)
Form Files:
------------------------ -----------------------------------------------------------
StartASPDemo.HTM HTML form
cobol.ASP Active Server Page file
REQUIREMENTS:
==========
Microsoft Internet Information Server (IIS) or another webserver that supports ASP pages.
OPERATION:
========
Consider the following steps:
1. Load ASPtoCOBOL.APP into Net Express
2. Click on Project > Update All Dependencies
3. Click on Project > Rebuild All
4. Edit the REG file
5. Amend the location of the DLL file (i.e. the project's RELEASE subdirectory)
6. Enter the Registry information by Right Clicking on the REG file and selecting Register
7. Set up an IIS virtual directory called COBOL
8. Point this to the location where StartASPDemo.HTM and COBOL.ASP are located
9. Use a web browser to open the StartASPDemo.HTM file (e.g. http://mywebserver/COBOL/StartASPDemo.htm)
NOTE:
====
Adding a call to CBL_DEBUGBREAK in the COBOL source will allow to invoke the Net Express animator for animating the COBOL code.
==========================================================
Keywords: demonstration, sample, example, demo, web programming, asptocobol.zip
demo.ex
demo.ne