Adding the Connection Control

In this step we add a Connection control to the Global.asax form, which is the form that acts as the ASP.NET application container.

To add a Connection control to your Global.asax form:

  1. Drag-and-drop a Connection control from the Pick Data Web Extensions tab in the Toolbox to the Global.asax form.

NOTE–

  • Do not confuse this control with the Connection control found in the Toolbox under the Pick Data Provider tab. This control is used with Windows form applications only.

  • The Connection control does not have to be placed on this form. It can be added to any aspx form if connection non-persistency is required.

  1. Set the properties for the Connection control from the Properties dialog box. In this tutorial, the properties are set as:

 

Connection

Database Property

Host Property

Password Property

User Property

Connection1

Demo_PickDP

localhost

admin

admin

 

Note that these are the same values set up in the Adding Servers section of this tutorial.

  1. Right-click the Global.asax form to verify that  the correct connection code has been inserted.