Based on. NET platform's layered architecture combat (11)-The implementation of the presentation layer

Source: Internet
Author: User

In this article, you will discuss how to implement the presentation layer.

The presentation layer is a system of "backyards", regardless of how well your system is designed, how beautiful the code is, how highly scalable the system is, but most of the end users are exposed to the presentation layer. Therefore, the quality of the presentation layer is critical to the user's eventual evaluation of the system. Generally speaking, the quality of the presentation layer has two evaluation indicators:

1. Beautiful. That is, the appearance of beautiful design, can give people the feeling of beauty.

2. Easy to use. That is, a good user experience, users to use comfortable, conveniently.

The design of the presentation layer involves a lot of non-technical issues, such as art, user psychology and so on, but in this article, will not be too much to deal with these issues, one is my level is limited, and secondly, these content and this series of articles is not very close relationship. The design of the presentation layer will be discussed mainly from the perspective of technology implementation.

In general, the presentation layer has the following two points of responsibility:

1. Accept input from the user.

2. Present information to the user.

In general, it is the interaction with the user.

The implementation of the presentation layer is also a variety of technologies, such as C/S architecture under the general use of Windows Forms technology (even the command line form), and b/s architecture is mainly using the form of web pages to achieve. Moreover, after the advent of Ajax technology, we have divided the B/s architecture of the synchronization model and the B/s architecture of the asynchronous model. In this article, we will mainly discuss the implementation of the representation layer of B/s architecture under the synchronization model, while the asynchronous model based on AJAX technology will be discussed in the next article.

In addition, mention of the implementation of the presentation layer, you must think of the word mvc, good MVC has become the presentation Layer Design Classic mode. Struts on the Java platform and the ASP.net MVC, recently launched by Microsoft, are the framework for implementing the MVC pattern. But in order to highlight the focus of this series of articles-layering, but also to take care of beginners. Instead of designing the MVC pattern, the traditional ASP.net programming model is used to complete the design of the presentation layer.

All of the discussion will unfold around the use case "admin login." Let's step through the presentation layer design for the admin login.

1. Design interface

To implement this feature, we first need to have a Web page. The design of the page as shown in the following image: (Forced by time, the production is too simple, you forgive me)

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.