Adobe 38040334 - Dreamweaver CS3 User Manual page 639

Pc
Hide thumbs Also See for 38040334 - Dreamweaver CS3:
Table of Contents

Advertisement

Display the results in a DataGrid (ASP.NET)
After creating a DataSet to hold the search results, you can use a DataGrid to display the information on the page.
On the search page, place the insertion point where you want the DataGrid to appear.
1
In the Server Behaviors panel (Window > Server Behaviors), click the Plus (+) button and select DataGrid.
2
The DataGrid dialog box appears.
In the ID box, enter a name for the DataGrid such as dgLocation.
3
4
In the DataSet pop-up menu, select the DataSet you defined to hold the search results.
Complete the rest of the dialog box as desired.
5
The following example shows a DataGrid dialog box that creates a DataGrid with three columns and ten rows, and
links to previous and next pages of results:
The DataGrid appears the first time the search page loads even if the user hasn't conducted a search yet. You can hide
the DataGrid when the page loads the first time.
See also
"Search with only one search parameter (ASP.NET)" on page 630
"Search with multiple search parameters (ASP.NET)" on page 631
Hide the DataGrid the first time the page loads (ASP.NET)
When the search page first loads, you can hide the DataGrid that will be used to display the search results.
1
Open the search page in Code view (View > Code).
Immediately following the Register directive at the top of the page, enter the following code block if the page
2
language is Visual Basic:
September 4, 2007
DREAMWEAVER CS3
632
User Guide

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents