Library tutorials & articles

Creating a Master-detail page

Introduction

In this article I'll show you have you can quite easily make a master-detail page by nesting repeater controls. The data will be taken from the Northwind database, and the two tables we are going to use are 'Categories' and 'Products'.

First off we need to layout our plan, for how we're going to accomplish making this page:

What we need are the following:

  • A Repeater control for the 'Categories' table.
  • A Repeater control for the 'Products' table.
  • We also need a relationship between the two tables.

Comments

  1. 01 Sep 2008 at 08:06
    hi, i am trying to transfer Invoice type,Invoice no and Invoice Date as per given below code But unable to access the value on the second page pls help me how it is possible ' runat="server" > ' runat="server" > ' runat="server" >--%> Example ' runat="server">--%> ">' runat="server">--%> ' runat="server" > ' runat="server" > ' runat="server" > ' runat="server" > ' runat="server" > ' runat="server" > ' runat="server" > ' runat="server" > ' runat="server" >
  2. 22 Apr 2004 at 23:33

    I am trying to test your code, so i found this below error:


    First all:I only put the Code into a web application folder,not user the vs.net to do,but when i try to browse the page,the application error tell me on't load the Masterdetail.masterdeatil,error line's Code is:inherits=Masterdetail.masterdetail.


    Second:I created a solution in vs.net,above the error is losed,but the .aspx page not display the result,why?


    My sql server connection string is right!

  3. 01 Jan 1999 at 00:00

    This thread is for discussions of Creating a Master-detail page.

Leave a comment

Sign in or Join us (it's free).

Thomas Johansen

Related podcasts

Events coming up

  • Mar 15

    DevWeek 2010

    London, United Kingdom

    DevWeek is Europe’s leading independent conference for software developers, database professionals and IT architects, and features expert speakers on a wide range of topics, including .NET 4.0, Silverlight 3, WCF 4, Visual Studio 2010, REST, Windows Workflow 4, Thread Synchronization, ASP.NET 4.0, SQL Server 2008 R2, LINQ, Unit Testing, CLR & C# 4.0, .NET Patterns, WPF 4, F#, Windows Azure, ADO.NET, Entity Framework, Debugging, T-SQL Tips & Tricks, and more.

We'd love to hear what you think! Submit ideas or give us feedback