NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Accessing Data with ASP+

Accessing databases from ASP+ applications is an often-used technique for displaying data to Web site visitors. ASP+ makes it easier than ever to access databases for this purpose and provides support for managing the data in the database.

For performance reasons, it is highly recommended that only SQL databases be used for Web server applications. Therefore, accessing SQL databases is the primary focus of this section.

The general procedure for accessing databases from ASP+ is as follows:

  1. Connect to the database using the SQLDataSetCommand.
  2. Fill a new DataSet using SQLDataSetCommand.FillDataSet.
  3. Set up a new DataView for the desired table.
  4. Bind a server control such as DataGrid to the DataView.

Of course, to implement such a procedure, there are many details that must be accomplished as well. The subsections that follow present examples showing these details. The discussion in these sections parallels the samples contained in the ASP+ Quick Start program shipped with the NGWS frameworks and runtime.