> Run the tutorial in PowerBuilder
Make changes for a .NET Web Forms application
Create a .NET Web Forms target and project
Deploy a .NET Web Forms project
Run the application from a Web browser
Before you deploy the PowerBuilder tutorial application as an ASP.NET Web application, make sure the application runs successfully from the PowerBuilder environment. The complete tutorial application is included in the Tutorial\Solutions directory in the PowerBuilder installation path.
Since you add a Web Forms target to the solutions workspace, it is best to copy the tutorial application workspace and targets to a separate directory first. That is what you do in the first steps of this tutorial.
Tutorial requirements
To run the tutorial application successfully, you must have
configured ASP.NET for a .NET Web Forms project. This includes setting
up appropriate permissions for running SQL Anywhere and connecting
to the EAS Demo DB V110 database as an ASP.NET user. For information
on configuring ASP.NET, see the first chapter in the Deploying
Applications and Components to .NET book.
Create a subdirectory under the Programs>Sybase>PowerBuilder 11.0>PowerBuilder 11.0>Tutorial directory and label it Web Forms.
Copy all the files from the Tutorial\Solutions folder to the new Tutorial\Web Forms folder.
There are four files you must copy: MyWorkspace.pbw, PBTutor.pbt, PBTutor.pbl, and Tutor_pb.pbl.
Select Programs>Sybase>PowerBuilder 11.0>PowerBuilder 11.0 from the Windows Start menu.
The PowerBuilder development environment displays.
Select Open Workspace from the File menu.
The Open Workspace dialog box displays.
Navigate to the Tutorial\Web Forms folder
under the PowerBuilder 11.0 installation folder, select MyWorkspace.pbw
,
and click Open.
The workspace containing the pbtutor.pbt PowerScript target file opens in the PowerBuilder IDE. This target contains two library files (pbtutor.pbl and tutor_pb.pbl) with all the objects of the tutorial application.
Click the Run button in the PowerBar.
The Login window displays for the tutorial application.
Enter dba
as
the value for the user ID and sql
as
the password.
Upon successful login, an MDI frame window with a menu and toolbar displays.
Test available menu options to make sure they are working, then terminate the application.