ASP.NET 2.0 Beta 1 Summary

xiaoxiao2021-03-06  39

By Ben

ASP.NET 2.0 Beta 1 Summary

Profile

The emergence of ASP.NET 2.0 is more convenient for developers' system development, more comprehensive and powerful design tools Visual Studio .NET 2005 Beta1 greatly improves development efficiency.

2. Research Process

2.1. Overview

VS.NET 2005 Beta1 with a powerful IDE environment, plus a luxurious function development interface, which makes the ASP.NET 1.1 development becomes a visual-free code design. Combined with modeling tools to develop more scientific and unity. Powerful new controls achieve more humane functions more powerful ASP.NET 2.0 ...

2.2. Research environment

(Virtual Server) WinXP, SQL Server 2000 SP

3A

, VS.NET 2005 beta1, .NET Framework 2.0

annex:

2.3. Research ideas

1. New development of operational environments

2. Use and characteristics of new controls, analyze the level

3. Security management

4. Web Parts and Portal Framework

5. Learn about the New Browser and Mobile Device Controls

6. Learn about Cache, Configuration and Administration

2.4. New page

2.4.1. Master Page

Master Page is equivalent to a web page template to extension with .master.

Add in Page in a normal ASP.NET page:

<% @ Page language = "*" masterpagefile = "~ / mysite.master"

Specify an Master page. Related Controls:

2.4.2. Website Map

Website Map is a definition site navigation path file that meets XML standards. Use the XML tree structure and page relational tree structure for common control:

2.4.3. Class Diagram

2.4.4. Generic Handler

2.4.5. Image generator

2.5. ASP.NET 2.0 control summary

2.5.1. STANDARD

1) Wizard

Can help achieve some guided type UI controls

2) Other: ()

2.5.2. Data

1) GridView

Is an upgraded version of the DataGrid in ASP.NET 1.1, using substantially the same.

2) DetailsView (new control)

Page by page display single record detailed information control

3) Formview (new control)

Controls that record new, edit pages can be implemented. (Same "with FormView Web Parts in WSS2.0)

4) SitemapDataSource

WEB.SITEMAP content data will be automatically obtained

2.5.3. Validation (omitted)

2.5.4. Navigation

1) Introduction: Controls designed for the system's navigation

2) Application

Sitemappath: Let's define the website path (Web.SiteMap)

Menu:

è Support data source: ReportSource, SiteMap (Web.Sitemap), XmlDataSource

è Dynamic and Static Menu (omitted)

2.5.5. Login

Mainly for user login, registration, retrieval / change password, etc.

2.5.6. WebParts

1) Introduction: Compared with SharePoint, design purposes allows users to define pages. You can also customize Design Web Part

2) Application

è Use Web Part to have only one WebPartManager control

è Web Part must be placed in WebPartzone

è Special web part uses special Web Part Zone

è You can realize the connnection2.5.7 of Web Parts. Crystal Reports (omitted)

2.5.8. HTML ()

2.6. ASP.NET Security

2.6.1. MemberShip

Membership Provides Secure Credential Storage With Simple, Easy-To-Use Apis. BCHOA is easier to implement, it is easier for system extensions.

The Membership Provider Model

We can easily implement MEMBERSHIP Provider. So MEMBERSHIP can support:

è SQL Server

è Access (MDB)

è ad (NOT Available with the beta release of asp.net 2.0.)

2.6.2. Web Site Administration Tool

1) Web Manager

http://localhost/aspnet_Webadmin/2_0_40607/default.aspx? ApplicationPhysicalPath = [Site Folder Path] & ApplicationURL = [Application URL]

2) Security configuration: Take the User to manage and assign the role or user directory access.

3) Profile configuration: (omitted)

4) Counter Configuration: ()

The Membership Configuration

TYPE = "System.Web.Security.accessmembershipProvider, System.Web, Version = 2.0.3600.0, Culture = neutral, publickeyToken = B

03F

5F

7f

11D

50A

3A

"

ConnectionstringName = "accessfilename"

EnablepasswordRetrieval = "false"

EnablepasswordReset = "true"

RequiresquestInSwer = "false"

ApplicationName = "/"

Requiresuniqueemail = "false"

PasswordFormat = "HASHED"

Description = "Stores and Retrieves Membership Data from The Local Microsoft Access Database File" />

...

* ConnectionstringName: The name of the database connection string (database connection string defined in web.config).

* PasswordFormat: include encrypted and clear. The default value is hashed.

* Use the Web Site Administration Tool to automatically generate configure.2.2.2.2.2.2.2.2.2.2.2.2.7. The New Browser and

MOBILE

Device Controls

2.7.1. Brower definitions

Due to operational environment, such as: Since the ASP.NET output is not necessarily IE browsing, for example, you want to browse on Mobile Device. You don't need to make a UI that support Mobile Device on ASP.NET 2.0, you can configure it Configuration to define the browsing output.

2.7.2. Mobile Device Controls

1) Standard Form- and page-based controls, Such as the bullet list and fileupload controls

2) Rich Controls, Such as The DynamicImage Control and The Wizard Control

3) Login and Authentication Controls, Used In Conjunction with Access Control Features

4) Navigation Controls, Such as The Tree View and Site Map Controls, And Counters

5) Data Access And Display Controls Designed to Display Relational Data, XML Data, And Data Held in Other Formats

6) Mobile Device Controls, Such as The Phone Call and PAgination Controls

2.8. Cache and Application Configuration

2.8.1. Cache Configuration

1) SQLCache

Use the Command Line tool ASPNET_REGSQLCACHE.EXE to configure SQLCache (specific use parameters can view HELP)

2) ASP.NET CACHE

ASP.NET stores some buffer data in the SQL ASPNET_SQLCACHETABLESFORCHANGENOTIFICATION table.

Set SQL Server Cache Dependency in Web.config

Connectionstring = "Server = localhost;

Database = northwind;

UID = sa; pwd = 00password "/>

Connectionstringname = "northwind"

PollTime = "500" />

3) Page Output-Cache

In addition to Web.config, you can set the sqldependency property in the <% @ outputcache%> page of the page, such as: <% @ outputcache duration = "9999"

Varybyparam = "none"

Sqldependency = "northwind: products"%>

4) SQLCachedependency Class and Cachedpendency Class

Sqlcachedependency is a new Class of ASP.NET 2.0, under System.Web.Caching Namespace, is used to build Cache Dependencies On Microsoft SQL Server 7, 2000, and 2005 Databases.

Cachedependency (, Introducted In ASP.NET 1.0)

2.8.2. Application Configuration

Web.config also has considerable changes with Machine.config. The new configuration part is mainly reflected in:

è Anonymous Identification

è Code Dom

è connect strings

è data

è caching

è _EXPRESSION Builders

è hosting

è image generation

è http cookies

è MemberShip

è site maps

è Site Counters

è Personalization Profile

è protocol bindings

è Role Manager

è Mail Servers

è url mappings

è Web Parts

è Web Site Administration Tool

è protected data

è health monitoring

3. Summary

è function performance implementation

ASP.NET 2.0 has a concept of software engineering management: developers focus on system business logic, rather than UI;

MEMBERSHIP is designed in terms of verification, more convenient for Form verification authorization development (although compared to the Authorization and Profile Application Block, the implementation of business logic is relatively simple, but still very practical, you can apply to our numerous general system );

To meet the future Mobile Device era trend, ASP.NET 2.0 has supported Mobile Device more than the previous version and other web programming;

To SQL, it is more proposed to effectively improve SQL's cache performance.

è software program design

A large number of powerful practical controls can solve all the functionality and performance issues of all UIs, etc., which will greatly reduce the development cost of UI layers.

Remove the concept of Project's Project before the ASP.NET 2.0, directly publish a local directory;

The combination of Web Part is more user-friendly;

Dynamic compilation mode makes the developer do not need to recompile and restart debugging.

ASP.NET 2.0 is an exciting product that let us look forward to its official release.

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

New Post(0)