Use master page and factory method mode in ASP.net 2.0

Source: Internet
Author: User

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.