ASP. NET features

Source: Internet
Author: User
Tags sql server express

Microsoft. NET Framework 2.0 has completely improved ASP. NET. ASP. NET has become an enhanced Web application technology. Developers can find that the amount of code required to implement Web sites and pages is getting fewer and fewer, thus experiencing unprecedented ease. At the same time, developers can add custom features to ASP. NET to meet their own needs.

The new ASP. NET version features:

◆ Productivity. With existing or newly introduced ASP. NET Server controls, developers can easily and efficiently create ASP. NET Web pages and applications. New features, including member relationships, personalization, and appearance themes, can provide system-level functional services. Generally, implementing these services requires a lot of code development. Core development solutions and special data are encapsulated into new data control, Non-encoding binding, and smart data display controls.

◆ Flexibility and scalability. Most ASP. NET features can be expanded, and developers can easily combine custom features into applications. As for what is an ASP. NET provider model, it actually provides support for insertion of different data sources.

◆ Performance. Web applications are optimized through pre-compilation, configurable high-speed cache, and SQL statement high-speed cache.

◆ Security. It is easier to add authentication and permission to Web applications.

◆ Host. Simplify the management of the host environment and create more opportunities for the host Program to add content in real time.

◆ Integrity. The new and old features work together to enable developers to create the ultimate solution and challenge real-world Web development.

Changes in ASP. NET will be discussed below:

◆ Web Site Management

◆ Page design

◆ Control

◆ Data

◆ Security

◆ Web Site Management

The improved Web site configuration file contains more settings. Web Site Administration Tool to set and maintain Web applications in wizard mode) makes it easier for developers to manage applications. Web Site Administration Tool is also useful for managing remote sites such as Web sites that are compatible with ASP. NET hosts.

If developers need to host other types of Web sites, they can use the new ASP. NET Microsoft Management ConsoleMMC plug-in or Management API to manage websites and monitor healthy states. Developers can also add information to the host site to selectively control the availability of controls or services.

New management features and tools

In the new ASP. NET feature, ASP. NET also provides easy-to-use management features for Web site developers and administrators. The configuration file contains a richer set of configuration elements, allowing site developers to control future features and control upgrades. The new configuration API makes the configuration information programmable. The new Tool provides GUI interfaces for application configuration. The Web Site Administration Tool is a utility based on Web interfaces, making it easier for developers to locally manage and remotely manage websites. There is also an ASP. NET-specific MMC plug-in that allows administrators to manage complex configuration solutions using standard tools based on Windows servers.

Special directory retained

A Web site can contain a directory named App_Code. The source code stored in the directory is automatically compiled as part of the Web site and used before it is compiled into a component or control format. The directory named App_Data is retained as a dedicated directory for database files such as the. mdf file of SQL Server Express Editon. The resource definition based on XML files also has a dedicated directory. The resource file contains several strings and other localized resource information, and is dynamically compiled into the application Assembly set at runtime.

Pre-compile the Web site for error check and deployment

Developers can pre-compile the Web site to avoid the performance impact caused by dynamic compilation and capture error information during compilation. You can also compile a deployment version that can be installed and used only by copying it to the target server. Pre-Compilation of source code can also help developers protect their knowledge.

Navigation

Developers can add navigation information for a Web site, usually called a website map and an XML file. Then, they can create a menu or Tree View through navigation controls such as TreeView and SiteMapPath to display the path of the current page.

Page Design

ASP. NET makes it easier to create a unified page and brings a richer user experience.

Use the template page for unified Layout

Developers can use the template page to define a unified layout for related pages. The general appearance is defined in the template page, while the body page content is defined separately, and then the template page is spliced and presented to the user.

Topic files with consistent appearances

You can create a topic file with a uniform appearance for the site. Theme files are usually added to favorites with control skins, and are set by attributes such as background color and font, CSS style settings, and images ).

New Page code separation model

ASP.. NET adds a new code separation model, but still supports the single-file model in earlier versions. The new Code separation model allows developers to create files as needed and use them.. NET Framework and special objects such as event processing ). Finally, a code file is generated completely separated from the page tag, that is, a robust Page code management model.

Customizable Web pages

Web Parts allows you to create highly modular Web pages, which can be customized by users. Web Parts combines independent functional modules on the page, such as weather forecasts, stock market quotations, or news reading windows. ASP. NET allows you to create custom Web Parts. Through the Web Parts structure, you can customize the components of the page, for example, enter the zip code to display the text input box of the region information) and change the layout of each Web Parts. Users can also add or delete Web Parts, so users are given the maximum flexibility.

User Information

ASP. NET also features that developers can define and use file attributes for users, allow users to customize the user experience of the Web site, and can also be used to understand the user information address, city), like the theme color, commonly used stock list), or any application requires custom information such as shopping cart ). Once user archive attributes are defined, ASP. NET automatically assigns corresponding archive instances to each user. Developers only need to set or obtain the corresponding information. ASP. NET determines how to save the data continuously according to the configuration file). ASP. NET automatically extracts the corresponding file attributes for the user upon next access.

New High-speed cache

The improvement of High-speed cache can further improve the site performance and precisely manage the high-speed cache. Compared with page-level cache management, it is better to use configuration items in Web. config to manage website-level cache. Developers can also program the content in the cache to become invalid. If you use a database of SQL Server 7.0 or later, you can set high-speed cache dependency based on the SQL Server database table. When the table information changes, the cache entity that depends on it also becomes invalid.

Enhanced client functions

To improve the user's runtime experience, it is easier to add the client function to the ASP. NET page. Developers can easily bind the client event processor to the control and support the acceleration key. As for multi-Page forms, developers can use the new Wizard control to obtain the new advanced features on Web pages: Cross-Page Submission.

Widget

Most Web server controls of ASP. NET have been enhanced, including existing controls and a new batch of controls.

Control Improvement

The controls used in ASP. NET Web pages are the main improvement targets in ASP. NET 2.0. Improvements to controls include:

◆ By default, the control generates tag files compatible with the XHTML 1.1 Standard.

◆ All controls support adaptive rendering and can generate tags that are compatible with the browser.

◆ All data controls support new data source controls and data binding models. binding models in earlier versions of ASP. NET can also be used.

◆ All controls support themes and skins. developers can customize the appearance of controls through ASP. NET themes.

◆ You can set device Filtering for properties of different controls and specify different property values for different devices. When the control is rendered, the corresponding attribute values are extracted based on the browser.

◆ Verification controls can be grouped, enabled selectively, and verified.

◆ Improved some frequently used special controls, such as Label controls and LixtBox controls ).

New Control

ASP. NET adds a batch of better controls to help developers quickly create a complete Web page. The following lists the advanced features of these controls:

Data. The GridView control has a powerful data grid. data can be displayed, edited, paged, and sorted without code operations. The TreeView control is used to render XML data. XML contains several options for customizing its appearance and behavior. You can also use the new data source control to simplify data binding. For details, see the following data section.

◆ Navigation. You can use the SiteMapPath control to add the navigation path of the page and display the website map through the TreeView control.

◆ Security. Developers can use a set of logon controls to verify user authorization and display custom information for authorized users.

◆ Web Parts. You can use the Web Part Control set to create an entry page that allows users to customize at runtime. For example, you can create a Web Part Page that receives user input. This page may be used to receive the zip code and display the weather information of the corresponding region.

◆ Client behavior. The new ASP. NET Server control is used to replace the tasks of HTML elements of earlier versions. Including FileUpload, ImageMap, and HiddenField controls. The new Wizard control allows you to create multi-panel pages and gradually guide you to use multiple forms.

The existing ASP. NET controls have also been improved. All Controls Support new data binding models, themes, and personalization. Any control can be used on the page, because the current control supports adaptive rendering and device filtering.

Data

ASP. NET makes important improvements to the use of data in Web applications.

Data Source Control

You can use the data source control to bind data to other controls on the Web page. The data source control encapsulates data connections, query commands, and parameter information. The Data Source Control in ASP. NET can interact with a variety of background data sources, including Microsoft SQL Server, Microsoft Access, XML files, Web Services, FrontPage site maps, and any business logic that returns data sets. All data source controls support the same basic object model and provide consistent operations for different types of data sources.

The data source control can automatically obtain and manage data when the page is running. Therefore, developers no longer need to write code to execute similar tasks. However, it is recommended that you use the low-level data access feature provided by ADO. NET if the application has actual needs.

If you want to pass parameters to the data source control, you can configure the control to display values from other controls, session Status, query strings, or Cookies; of course, you can also set the parameter value through programming.

Middle Layer Data Access

With the new ObjectDataSource control, developers can easily add the data access function based on the intermediate layer business object to the page. The ObjectDataSource object provides the same binding interface. To replace direct database access, you must call related functions in other specified components.

Data Display Control

ASP. NET provides control support for displaying and updating data on Web pages. All controls can use data source controls as data sources, rather than operate datasets or other data. Developers can use the following controls to simplify advanced features of data access:

◆ The GridView, DetailsView, and FormView controls are used to display and edit data. The GridView control replaces the DataGrid Control in the previous ASP. NET version ).

◆ The TreeView control is used to display hierarchical information from XML files, website map files, and various relational data sources.

◆ The SiteMapPath and Menu controls are used to bind navigation data.

XML support

ASP. NET has multiple ways to use XML data. The XML data source control is used to display XML data, which can be used as hierarchical or flat data respectively. You can bind XML data to the TreeView control to provide a hierarchical data view. You can also bind XML data to a plane list control similar to the GridView using the traditional method.

Connection string Storage

To enhance the security of Web sites, developers can save connection strings as special content to the configuration file.

Security

The new ASP. NET feature provides built-in support for user authentication and authorization. ASP. NET member relationship management authorization, which provides user permission verification and helps users manage passwords.

The member relationship service provider API allows you to create new users, verify permissions, and obtain user information. To simplify the authorization process, you can use the new logon control set. These controls work together with ASP. NET members to complete many related tasks without additional coding. The Login control prompts the user to show the license information and verify the information. The PasswordRecovery control provides several options to help users change or remember passwords. You can use the LoginName control to display user information and use the LoginStatus control to display the logon or logout buttons. The LoginView control allows you to hide some content and only display it to authorized users.

ASP. NET role management helps developers manage authorization and provides advanced management methods for defining and checking user roles.

Like the role management system, a new ASP. NET provider model is used to separate system functions from data storage sources that support them. For example, a member relationship can store user information in Microsoft SQL Server or Microsoft Access. If these default options are not suitable for the current requirement, you can also create a custom provider to receive calls from the member relationship and manually implement the Custom Data logic.

The above are ASP. NET features. These features and features will help you build Web programs more quickly and securely.

  1. Use of the AdRotator control in ASP. NET
  2. Construct an XML Web Service using ASP. NET
  3. Talking about how to design the drag-and-drop ASP. NET online customer service
  4. Automatic Generation using tools for getting started with ASP. NET 2.0 localization technology
  5. Analysis of ASP. NET Unit Testing

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.