Web Part framework of ASP. NET 2.0 (New Book serialization)

Source: Internet
Author: User

ASP. Network 2.0OfWeb Part framework(New book serialization)


This articleArticleIntroductionWeb PartConceptual meaning andWeb Part frameworkStructural diagram.


 

RecentASP. Network 2.0There is no new news, and there is no amazing news. Without news, it seems that the priest has to create news by himself. What I want to talk about today isASP. Network 2.0OfWeb Part framework.

Web Part frameworkThat is Web Component. Why? There is a story. A reader asks me what he wants to use. Web Part But can I not use it? SQL Server Database ?! He asked me why, because ASP. Network 2.0 There are too many things, so I cannot remember the details of my residence. So I called up chapter 20th. Web Part framework , I pulled it back. Web Part framework The memory of the Architecture diagram operation. I will tell him within one minute ~ Impossible! Why is the priest so determined? Let's take a look at the explanation in the priest's book. Web Part framework Architecture.

First, let's take a lookWeb Meanings and functions of components:
Web The original component is 「 Web parts At first glance, this term is really confusing! It is really impossible to intuitively think about what it is. The priest first interprets the concept in the vernacular. In fact Web Components are a bunch of pre-defined "Web parts" (I think Part Turn to parts is more appropriate), and through these "Web parts" allows users to splice and modify to adjust to his favorite web page style and Layout Configuration (it feels a bit like a Lego building block can be freely combined). Unlike traditional web content design, the configuration is fixed, and the configuration is fixed! The content you see by the Emperor Lao Tzu or the general manager is exactly the same as that seen by our staff. The nice thing is that everything is equal, but it is hard to hear that it is not human, completely erase the appearance style preferences that users of different identities, gender, and constellation may like. Web Component users can combine personalized mechanisms to customize the appearance or style. Web The component content is stored in the personalization mechanism. Even if you close your browser and leave the website, the system will automatically display the style you have defined from the personalization Mechanism upon next login, and applied on the Web page you log on to, how? Interesting!

WebComponent Architecture:
In further explanationWebBefore using the component architecture, let's take a look at the following:WebComponent architecture.

WebComponent Architecture

From above Web The component architecture diagram contains three layers: (1) The bottom layer is the personalization mechanism. (2) Middle layer is UI Structured Components (3) The top layer is Web Components UI Control items, the top layer will depend on the middle layer, and the middle layer depends on the bottom layer. What does this mean? Because they must be paired with each other to operate, it is described as follows:
(1) Personalization mechanism (bottom layer)
Because Web Since the component allows users to customize the appearance, style, or composition of their personal preferences, there must be a mechanism to remember Web The "personalization mechanism" plays this role for various settings and changes made by the component. When the user logs on to the next time, Web The component system will automatically read the relevant information and settings from the personalization, and then restore them one by one to the user's last set page appearance settings.

(2) UIStructured components (intermediate layer)
UI Structural components depend on personalization and provide all Web Core structures and services required for component control items. UI Structural Components mainly include two categories. One is Webpartmanager Control item, the other is Zone Each component page must have Webpartmanager Control items to manage and coordinate all Web Component Control item, Zone Is to accommodate the actual Web Component control, and is responsible Web Component Control Layout Configure and provide titles, appearances, and styles Web Component Control item.

(3) Web Components UI Control item (top layer)
Web Components UI The Control item is the actual display and Function Control item. In fact, it is only a few types of "servo-end control items", including: Web Component Control item, ASP. NET Server control items Web Component control items, user-defined control items, and custom server control items must be placed in the corresponding Zone The control items on this layer depend on the reason for the middle layer.

As explained in this architecture diagram,Web PartMust be dependent on the underlying layerPersonalizationPersonalization mechanism, and personalization requires a database, so I can't answer him clearly within one minute!Web PartYou still need the database.

Note:

BecauseASP. Network 2.0There are too many things, and the priest's memory is not very good, so I really need a good technical manual for my reference, and the technical manual for my reference is of good quality, and the depth of the second is sufficient, 3. All the secrets of knowledge must be written. No one is defending themselves....Haha, so the priest has always told you that this book is not only for your reference, but also for the important reference of the priest himself. It is not for your reference, and it is not for your reference, I have been referring to it all the time!Pai_^


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.