Some new features of ASP.NET 2.0 (for developers only)

zhaozj2021-02-16  51

Author: Sreedhar Koganti, translation: NetFire (Fire.Rolland.Han) translated from the original author permission. Original: http://www.w3coder.com/alphatalks/ASPNet20.aspx

Note: This article has been published in "Program Spring and Autumn" Journal 2003 12. Now forward 9CBS, copyright belongs to Netfire himself, magazine and 9CBS. If you need to reprint, please contact me or magazine magazine is the final scripture, I can't find it. The following version doesn't know when it is :(

Opening language:

In this article, I will introduce you to some interesting new features of WINDBEY. Oh? Is whidbey? Don't mix, whidbey is the internal development code of V2. (Hereinafter v1 represents ASP.NET 1.0, V2 represents ASP.NET 2.0)

text:

Ok, let's talk about V2; V2 is the "starting point" of Microsoft.net's next-generation application development platform. It is said that it is also part of yukon. Don't worry, Microsoft will uncover the veil of V2 Alpha at the upcoming PDC conference. Ok, let us go to the positive biography. (PDC - Microsoft Professional Developers Conference, referred to as PDC; YUKON - Microsoft's next generation SQL Server internal development code)

There are some interesting new features in V2:

A) and V1, the code line in V2 is reduced by 70%, is this very exciting?

b) New vs.net (whidbey) will bring users friendly, exciting new features, which will make developers' programming life very easy.

In addition, in the new version of VS.NET, there are some new features.

1. No items "Project-Less"

If you are a developer from ASP, you will be very excited to this prospect.

2. The Web site will support FileSystem, IIS, FTP, and FPSE (FrontPage Server Extensions).

3. Simultaneously support code separation and page embedding server-side code.

4. Full features stronger intelligent syntax and debugging support.

5. HTML code saves;

Microsoft officially said that this time it is certain. So for the developers of the MS camp, this is definitely a good news.

6. Support the real XHTML standard, as well as the engine of the dynamic plugin;

7. More comprehensive support for database design;

8. Add more than 40 new controls in ASP.NET. I believe they will bring great convenience to the work of developers.

These controls are described below:

Login / Security Controls: This control is not - a) Login B) Loginview C) PasswordRecovery D) LoginStatus E) Loginname These are very convenient controls, and these controls will be developed Applications where landing security systems are getting very simple.

(Figure 1: WHIDBEY Toolbox SECURITY control screenshot)

Data / DataSource Control:

Below is a new Data Source control in ASP.NET 2.0:

1. 3. 4. 5. 6. below is ASP.NET 2.0 Data Bound Control: 1. 2. 3. 4. (beta timeframe)

(Figure 2: WHIDBEY Toolbox Data Control Screenshot)

Personalization:

In the Personalization control in ASP.NET, the information is stored in a fixed format and is associated with a particular user. ASP.NET's Personalization control allows us to manage users in a simple way without having to use the database (this eliminates the management of the database). In addition, the Personalization system provides a set of specifications, easy-to-use, powerful APIs for our processing of user information, making our application can be used anytime, anywhere.

Here are some of the privatization controls:

a) WEBPARTMANAGER B) WebPartZone C) ContentWebPart D) Catalogzone E) PageCatalog G) TemplateCatalogPart H) AppearanceEditorPart I) LayouteditorPart I) LAYOUTEDITORPART

(Figure 3: WHIDBEY toolbox Data control screenshot)

Navigation:

This Navigation control helps us easily create navigation in the ASP.NET site. In a site, we can describe the logical structure of this site with a site topic. Of course, we can simply modify the site map to manage the navigation of the page, or make a lot of modifications to the management page navigation.

(Figure 4: WHIDBEY Toolbox Navigation control screenshot)

Below is another new control (as for the name of these controls, everyone can guess):

1) Wizard

2) Image generation 3) MULTI-View 4) ImageMap 5) Mobile controls, etc. Master Pages: This feature is useful for many sites. With the Master Pages, we can consistent with the page layout in the program. In our app, Master Page customizes a universal look and standard behavior for all pages. After that, we can use this master page to create a separate page instance that will naturally contain these general features. You can find content related to this in Wilson's Blog -Master Pages Details at Paul Wilson Blog. URL is -http: //weblogs.asp.net/pwilson/posts/33273.aspx

Web admin Tool: In ASP.NET 2.0, this is one of my favorite new features. This tool will help us configure information in the web.config file. So, when in a product application, you don't need to open the web.config file to modify the configuration. Just like IIS's virtual directory configuration, you can modify some properties whenever you need it. For example, when you need to modify the database coupling string in the web.config file. In the IIS site properties, you can find tabs called ASP.NET, which will help us configure and manage web.config files. The following image is the Web Admin Tool under the ASP.NET tab in the IIS site properties. (Figure 5: Screenshot of Web Admin Tool in IIS)

(After clicking the "Edit Configuration" button, screenshots shown)

Cross Page Posting:

This is another new feature I like in ASP.NET 2.0. Previously, transfer data between the page was a painful thing. But now in ASP.NET 2.0, this is very easy.

The page can now be submitted to another page while the initial server control can be accessed. Is this refreshing?

How to get it? Completion of it only requires two two steps, they are:

1. Set the "PageTargetURL" property, in the button and server control, it will trigger the submission between the page;

2. Use the "previOUSPAGE" attribute in the original control of the relevant controls in the target page.

Ok, now you can control the data transmitted by the previous page!

Client script: Now we can talk about new client script support, they are:

a) FOCUS B) Scrolling c) Client Events D) Out of Band Call Backs To Server

Now we can also get relevant support from the newsgroup. I think this is also a new feature of ASP.NET 2.0.

to sum up:

We are very briefly discussed in the new features involved, and there is no mention of new features such as Mobility, Health Monitoring / Operations, Hosting, Copy Web in Visual Studio. Don't think ASP.NET 2.0 only these new features. In the article, I just briefly introduced some of the relative importance, which is just the horn of the iceberg. Now ASP.NET 2.0 is just in the test phase, and there are more new things waiting for us when it is officially released, let us wait and see!

转载请注明原文地址:https://www.9cbs.com/read-24350.html

New Post(0)