Original address: Http://www.codeproject.com/KB/applications/MasterPagesASP.aspx
Author: Ssaud
Introduced
Here I explain how to maximize the advantages of the master page. There are a number of articles about the advantages of master pages, see http://www.odetocode.com/Articles/450.aspx This article is certainly not the same as those articles. Sometimes you run into situations like this: the same user interface (GUI), but different business logic, as shown in the figure. Therefore, you will consider using user controls to maintain the standard appearance of each page. But if you listen to me and explain how to use the master page of Factory mode design, you'll feel cool! Here I use a table with a click function (GRID).
Background
Before reading this article you must have a knowledge of the master page, so that you can better understand this article
Work flow
When the user selects the Order details from the menu, the parent table populates all the order lists, and the child table fills the list of products that are included in the order. When the user selects the employee, the parent table populates the list of all employees, and the child table fills the list of selected employees ' regions. There are 2 content pages to display information about the selected item.
About Code
The downloaded code includes the Dbcontroller1 helper class. You just need to modify the database link string to link to your SQL Server. The background database is the Northwind database with SQL Server.