Technical Training
ASP.NET 2.0Table of Contents
Displaying Master-Detail Data on Separate Pages in ASP.NET
Displaying Master-Detail Data on Separate Pages in ASP.NET - Page 2Displaying Master-Detail Data on Separate Pages in ASP.NET
Displaying Master-Detail Data on Separate Pages
In this tutorial you will learn how to display Master-Detail Data on Separate Pages, create the details page, test the pages and Allow Editing, Deleting, and Inserting Using a DetailsView DataBound control.
A variation of the GridView and DetailsView control is the display on separate pages. Each record has an hyperlink which enables them to navigate to a second page where they can view the detail records in a DetailsView control
1. Add a new page to the Web site and name it MasterCourses.aspx.
2. Switch to Design view.
3. Type Courses in the page and format the text as a heading.
4. From the Data folder of the Toolbox, drag a GridView control onto the page.
5. In the smart tag panel, from the Connect to Data Source list choose < New Data Source > and then use the wizard to do the following:
a. Click Database.
b. Connect to the ExForSys database.
c. Retrieve the CourseId, CourseName and CourseDuration columns from the CourseDetails table.
6. Optionally, in the smart tag panel select the Enable paging check box.
7. In the smart tag panel, choose Edit Columns.
8. The Fields dialog box is displayed.
9. Clear the Auto-Generate Fields check box.

10. Under Available Fields, choose HyperLink Field, click Add, and then set the following properties:
Property |
Value |
Text |
Details |
|
DataNavigateUrlFields |
CourseIdThis indicates that the hyperlink should get its value from the CourseId column |
|
DataNavigateUrlFormatString |
DetailsCourse.aspx?CourseId={0}This creates a link that is hard-coded to navigate to the DetailsCourse.aspx page. The link also passes a query string variable named CourseId whose value will be filled using the column referenced in the DataNavigateUrlField property. |
Click OK to close the Fields dialog box.
The details page can now be created that accepts a value from the master page. It should look like the screenshot here:

ASP.NET 2.0
- Getting started with ASP.NET 2.0
- .NET Framework Fundamentals
- Microsoft.NET Framework Tools
- Application Development in .NET
- What's New in the .NET Framework 2.0 ?
- Introduction to Visual Studio.NET
- Installing Visual Studio.NET 2005
- Working with Visual Studio.NET Web Applications
- Whats New in ASP.NET 2.0
- Creating an ASP.NET Application
- ASP.NET Code Directory
- ASP.NET Page Object Model
- ASP.NET Server Controls
- ASP.NET Working With Master Pages
- ASP.NET Creating Content for Master Page
- ASP.NET Referencing Master Page Members
- ASP.NET Changing Master Pages Dynamically
- ASP.NET Creating Nested Master Pages
- ASP.NET Working with Web Parts
- ASP.NET Using Web Parts and Controls in Web Pages
- ASP.NET Web Pages and Layout
- ASP.NET - Adding Web Parts at Run Time
- ASP.NET Personalization: User Profiles and Themes
- ASP.NET Data Access features
- ASP.NET State Management
- ASP.NET Customizing the Session State Mechanism
- ASP.NET State Management And Caching
- ASP.NET Security
- Forms Authentication in ASP.NET
- ASP.NET Managing Membership and Roles
- ASP.NET Configuring Page-Level Caching
- ASP.NET Setting Application-Level Caching
- ASP.NET Data Source Object Model
- ASP.NET SqlDataSource Control
- ASP.NET Data Bound Controls
- ASP.NET GridView Control
- ASP.NET GridView Filtering
- ASP.NET Adding Sorting and Paging in GridView
- ASP.NET DataBound Controls - Details View
- ASP.NET Using a Grid to Display Detail Information
- ASP.NET Displaying Master-Detail Data on the Same Page
- Displaying Master-Detail Data on Separate Pages in ASP.NET
- ASP.NET Creating Web Wizards
- ASP.NET : Dynamic Image control
- ASP.NET Advanced Site Functionality







