"Asp.net4 from Beginner to Mastery" study Note 2

Source: Internet
Author: User
Tags iis administration

"Asp.net4 from Beginner to Mastery" study Note 2

Part II Advanced Features

7th. Consistent interface

Consistent interface, has always been a key point of interface design, different sites, need a consistent interface, otherwise, there will be different interface display of messy or poor experience.

The design of a uniform interface usually has the following three points:

l Adopt A custom space, that is, to design a custom control, and then this control is displayed on each page.

The way the parent inherits, that is, to define a common parent class, and then all subclasses inherit the parent class.

L Master master Page mode, which was proposed after asp.net2.0, a better solution to the consistency problem

The consistency of the interface, will be related to the beautification of the problem, then the ASP. NET provides three kinds of landscaping programs

L CSS, the essence of this landscaping scheme is to beautify individual page pages

L Theme, higher level than CSS, apply this theme, you can apply a batch of CSS to beautify

L Skin, this landscaping program is only for the specific webcontrol of the beautification control

8th Chapter Configuration

The general program will have a configuration file, the program run control, which is not related to the writing dead program. In general, the configuration of Windows is also a gradual development process, generally provides the following configuration scenarios:

L INI file, early key/value scenario

L registe scenario, the Windows system registry, which is itself a configuration database, provides the necessary configuration information

L XML Schema configuration file is the inevitable result of ASP. Provided machine.config, Web.config,site.sitemap, and so on.

Machine.config

This is essentially. NET environment, it can be considered that the system default configuration after the. NETFramework is installed, and its scope of influence includes both the ASP and the WinForm program. And the start of the configuration file provides a description of the definition and interpretation of some of the key parameters of the self-configuration file.

Web. CONFIG

The essence of this file is in the Web program, replacing the Exe.config file, the goal of this model is to complete the specific application of personalization, and the configuration can support nested configuration, deep-seated decision of the external level of functionality, each directory can set their own configuration properties.

There are several ways to manage Web. config:

L Handle manually, configure the program before release

L "Website Administration Tool", configure the program before release

IIS administration Tools, which can be configured to deploy future programs

9th Chapter Login

This part, I think is the book is not very good explanation of the place, a lot of places not enough to explain, and did not see what it means to log in this matter. suggest looking at another book to replace .

The introduction of so-called security by login is nothing more than user acknowledgement and user authorization management. So compared to traditional Windows desktop-level programs, management of these things is through the Windows domain users and other methods of management, but in the network environment, management should change, because the network, there may be users you do not know to visit your site. So in order to solve these problems, ASP. NET provides the following three kinds of authentication methods:

L Form Certification

L Windows Certified

L Passport ID Certification

Form certification: Personal understanding, the essence is their own implementation of user authentication and user Rights management.

Windows Authentication requires authentication using the Windows domain user's mode

PassportID certification, is to visit Microsoft's Live ID certification to complete.

Asp. NET provides the login control, its essence is to reduce the development of the login part of the workload, for the implementation of forms certification to provide a set of its own simplified method, the use of the database or SQL SERVER. The method of management is implemented using the Web management tool, which is simple, generic, but inflexible, and usually we write our own forms certification process and implement a unique login interface and register interface.

Chapter 10th Data Binding

Why do I need data binding? Very simple, for the ordinary to become, it can not need data binding, but through the ordinary into, such as for Loop, foreach and so on, browse all the elements, the indirect completion of the collection control data Add.

But with data binding, data addition becomes auto-complete. (So it can also be said that this is a framework for data processing.) Through such a framework, you can simplify the process of adding data, even simplifying the data, deleting, changing, checking and so on.

Data-bound methods have simple data binding, that is, the DataSource property of a collection control that is bound directly, or by introducing a DataSource control and then completing it through the DataSourceID bound collection control.

The second part, about the processing of ADO, and the Explanation of LINQ, is relatively simple, suggest to read another book study.

11th. Navigation of the website

A website must include the site navigation function, because the development of a website, always involves the redirection of different URLs, therefore also involves the navigation function.

The method of navigation can be implemented via the HREF link of HTML, but this method is the earliest method. In ASP. Nav, the navigation is done using the following three controls.

L TreeView: The navigation structure of the property structure that provides navigation links to the property display

L Menu: Provides navigation structure of menu function

L SiteMapPath: Provides a navigation structure linked to the current location

These controls can be directly filled out, or can provide XML sitemap file mode, is provided for the convenience of modification, later site changes, only need to adjust the XML sitemap can, do not need to rewrite the program. This is also a simplified approach. Site map for the WEB. Sitemap

<sitemap>

<sitemapnode url= "", title= "", description= ""/>

<sitemapnode url= "", title= "", description= ""/>

<sitemapnode url= "", title= "", description= ""/>

</sitemap>

The so-called URL mapping, is a type of Web. config to fill in a configuration, and then the virtual (nonexistent URL) can be redirected to the actual URL, and then by the parameters of the partition.

Chapter 12th, Chapter 13th

The book explains too Fanfan, ignoring

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.