Visual Studio Whidbey - Web Application Development New Function Preview

zhaozj2021-02-16  53

Visual Studio Whidbey - Web Application New Features Preview Microsoft ASP.NET Group

Summary: This article introduces some new features that speed up and easily speed and easy data to drive web applications on the Microsoft Visual Studio of "Whidbey". These new features include: Better HTML Source Editor, Better IntelliSense, Improved Data Access Support, and fully supports XHTML standards.

Content: · Better HTML Source Editor · Better Visual Designer · Better Web Project Management · Better Data Access Support · Better Standard Support · Summary

Microsoft® Visual Studio®, which is about to be released, "Whidbey", is the best tool for developing data-driven web applications. The Whidbey development environment is suitable for current and next-generation ASP.NET development, providing a lot of powerful new features for web application developers.

Whidbey displays the menus and window layouts that are best for web applications through a new web configuration file to meet the developers' special needs. The Whidbey development environment includes an improved HTML source editor, visual page designer, and new project system that support data access and fully supports the XHTML standard. These functions make the data-driven Web application more quickly than ever.

Below, let's introduce some new features that can accelerate web applications.

Better HTML Source Code Editor Whidbey Version Visual Studio .NET has an improved HTML source editor that enables developers to quickly write and modify the page. The source code editor provides new features such as Microsoft® IntelliSense®, tag navigation and verification.

IntelliSense feature is included with IntelliSense is a technique that displays pop-up code prompts when typing, which can significantly improve the productivity of the developer. Although Visual Studio .NET is now very good for IntelliSense, but whidbey will be more good for IntelliSense.

In Whidbey, IntelliSense pops up. For example, INTELLISENSE can be used within a single file ASP.NET page script block. In addition, WHIDBey provides IntelliSense support for ASP.NET Page Indicators and Inline CSS style properties.

Whidbey also provides IntelliSense support for all configuration sections in the web.config configuration file and a general XML file containing DTD or XSD.

Figure 1 Using IntelliSense in a single file ASP.NET page

HTML Source Codes keeps whidbey will not change the developer's HTML tag. HTML marked format, including all blank areas, uppercase, indent, carriage return, and automatic wraps, and now you can keep it in writing, even between page design view and source view, and switch-back switching.

HTML Format Options whidbey enables developers to accurately control the format of HTML tags generated by the WySIWYG designer and the ASP.NET server control tag. The case of each HTML tag or server control tag, attribute reference, indentation style, and automatic wrap characteristics can now be configured. These format options can be set to all the default formats of all tags, and can also override the format options for each tag and control to provide flexibility for the full control marker format.

HTML format settings can be imported and exported from WHIDBEY to ensure the standardization of tag style when the team is developed. Developers can easily apply HTML format rules to existing tags to handle situations where new format rules update existing HTML source files.

Figure 2 Setting the marker format option

Tag Navigator WHIDBEYTTTTTML Source Code Editor has a new features of Tag Navigator, enabling developers to easily locate and navigate within complex HTML documents. TAG Navigator Displays the "path" in the page source file by displaying a tag list that contains the mark in which the current cursor is located, click the node to select the hierarchical level of the code at will, and can be quickly up and down in the HTML hierarchy. For example, suppose you are editing an HTML page source file with a multi-layer nested table. Nesting form is difficult to edit because it is easy to lose in mixed rows and cells. This is to avoid this situation because it always displays the current path of the hierarchy of the table element.

Figure 3 Using TAG Navigator

Tag Outlining Using the Marker Outline to handle large HTML documents more effectively. Right-click the HTML tag in the source code editor, then select "Collapse Tag" to hide the contents of the tag. HTML source code in different regions in the folded page allows developers to concentrate on a particular area that needs to be edited.

Figure 4 Use the marker master folding tag

Flexible browser specifies and verifying in whidbey, specifying a dedicated verification criteria or browser for an HTML page. Developers can specify HTML pages to be accessed by some browser, such as Netscape® Navigator 4.0 or Microsoft ® Internet Explorer 6.0, or specify a certain verification standard, such as XHTML 1.0 Strict or XHTML 1.0 Transitional.

When you type the code, the source code editor checks the HTML source code in real time. The invalid source code will automatically add red waves underline, and use the tooltip (Tooltip). Verify errors are also displayed in a task list (Task List) window in real time.

In Whidbey, all browsers and standard verification rules are insertable, and developers can easily expand and customize. Whidbey offers many automatic authentication targets, including XHTML standards, XHTML Transitional standards, and all major desktops and mobile browsers.

Figure 5 XHTML 1.0 Strict Standard Verification

Figure 6 Select the verification target

Code Reconstruction Use Code Reconstruction to easily and systematically modify the code. In Whidbey, you can write code reconstruction, including code hidden, and single file ASP.NET pages.

Intelligent Tasks (Intellitask) Microsoft® Intellitask is like a super intelligent code processing clipboard, which makes it easy to apply standard code snippets to anywhere in the source code editor, thereby increasing development efficiency. You can inject the general code into the page via simple right-click. Whidbey preruffest Intellitask code snippet for more than 200 web applications. BEST fine, developers can add their code templates to Intellitask to quickly modify the code in the future.

Better Visual Designer Whidbey With an improved visualization designer, it is very convenient to establish an ASP.NET web application. With this new designer tool, developers don't even write a line of code, you can create a rich data-driven web application.

ASP.NET MASTER PAGE Designer Using Master Page Create a universal look for the ASP.NET Web application page. Developers can create a single page layout using Master Page and apply it to multiple Content Page. For example, you can use Master Page to ensure that each page contains the same standard header, footer, and navigation bar.

Whidbey fully supports WysWiyG creation of ASP.NET MASTER PAGE. When Master Page is created, apply it to the new ASP.NET page of the Web site. Whidbey also supports creation ASP.NET pages based on Master Page, and designers can view the appearance of the combined page, and copy all the content that cannot be edited on the Content page from the master page. Figure 7 Add a content placeholder on the Master Page

Figure 8 Design Content Page on A Master Page

Smart Tasks uses Smart Tasks capabilities, developers can perform many of the most common design tasks directly from the designer interface.

When the new control drags and dropped into the designer, a common task list will automatically pop up. Use common task lists to quickly configure control properties and perform some common operations. For example, when adding a GridView control to the page, you can quickly implement the GridView sort, pagination, or editing using a common task list. When you add a TextBox control to the page, you can quickly associate it with a validation control.

Figure 9 Sets the GridView option with Smart Tasks

Improved ASP.NET Templates Edit whidbey provides improved template editing features. These new features can be utilized when using data controls (such as DataList and GridView controls).

When adding controls to the template, you can easily specify the data binding expression and the control property association. For example, if drag and drop the TextBox control to the template, you can bind its Text property to a specific field of the data control data source. With the "Edit Database" dialog provided by the template editing designer, you can easily bind a specific field according to the field name.

Figure 10 Editing the DataBindings property of the TextBox control

Improved table edit whidbey has a good HTML table editing function. With the improved "Insert Table" dialog, you can quickly control the appearance of the new form. Alternatively, you can graphically adjust the table and the size of each row and each column in the designer.

Figure 11 Add a new form

Figure 12 Adjusting the size of the table in the designer

Mobile devices support ASP.NET controls to display different devices. For example, a Calendar control is different from the content displayed in the WAP browser and it is displayed in the HTML browser. This capability is called adaptive rendering.

Whidbey fully supports adaptive display, and its built-in WYSIWYG designer supports the device properties, templates, and tags on the page. This allows developers to better optimize the browser experience of different users.

Better Web Project System Whidbey provides more flexibility and functionality for files in the developer management web project. The new Web project system has new tools with easy access, compile and publish web applications.

File System Support Whidbey allows developers to choose a new web application in any folder. When you create a file system project, you don't need to install Microsoft® Internet Information Services (IIS) or Microsoft® Front Page® Server Extensions (FPSE) on the machine, just simply specify a folder, you can start building a web page.

Figure 13 Create a file system Web site

Whidbey has a built-in ASP.NET web server, developers can develop and debug web applications on a computer where IIS is installed, and does not require administrator access.

The built-in web server further provides developers with a more secure way to establish web applications on the development machine, because the web server cannot access remote access (only by local web browser), when exiting the Whidbey development environment, It will also shut down automatically.

Local IIS Support (No FPSE) In addition to supporting file system projects, WHIDBey now makes developers to manage IIS projects more easily. When you create a new IIS project, developers can view all Web sites and applications configured on the machine, and even create a new IIS web application or virtual directory directly from the New Web Site dialog box.

Local development IIS web applications no longer need FPSE. You can create and fully manage the web site without installing or configuring FPSE.

Figure 14 Create a local IIS Web site

FTP supports whidbey Built-in Support Using Standard File Transfer Protocol (FTP) Editing and Updating Remote Web Projects. Developers can quickly connect to remote Web sites in the "New Web Site" and "Open Web Site" dialog box.

Figure 15 Connect to the remote site using FTP

Better Web Publishing WEB Site to Remote Server is easier than ever. Use the Whidbey built-in publishing feature to easily maintain files in the local project with files on the remote web server. Whidbey supports auto-recording of all replicated files that enables developers to quickly identify if the recently replicated file has been updated.

Figure 16 Releases Web Site to Remote Web Server

Precommine ASP.NET Web Site Whidbey Built-in IDE Support Precompiled ASP.NET Whidbey Application. Using precompilation, you can automatically check and compile all of the code in the site (including code hidden, in-line code, and business class), and release an output directory, which contains only the compiled dynamic connection library set and the application's web.config file. All HTML tags and .aspx files are removed. In addition, in order to better protect the intellectual property, you can choose to confuse the results code during the precompilation process.

The precompilation function enables developers to easily establish and sell ASP.NET web applications without providing source code. Precommination can also improve site performance and startup time.

Better data access supports whiDbey makes data access in the web application easier.

DRAG-AND-DROP Data Access By dragging and dropping a data control to the page, developers can easily create data-driven web pages. Use the new ASP.NET Whidbey data source control, you can easily connect to the database, retrieve, and update database records without writing any code (or write all code to write all code).

For example, suppose you want to display all records of Microsoft® SQL Server Database Table Products on the web page, just simply dragging two controls to the page: a SqlDataSource control and a GridView control. By setting certain properties, you can implement automatic retrieval and recording on the web page.

Figure 17 shows database data using two controls

Data Access Layer Designer Whidbey provides a built-in data access layer designer that supports the establishment and maintenance of data access layers within a web application. The data designer enables developers to model database tables and stored procedures into components that encapsulate ADO.NET data access logic processes. Through these data components, it is easy to access and update the data from the web page and the business objects (Business Objects).

Powerful object data binding function Whidbey enables developers to quickly create 3-layer applications with clear representation layers, business and data layer structures. With the new ASP.Net ObjectDataSource control, you can declare that data controls (such as GridView, DataList, DROPDOWNLIST) are bound to the business layer or data layer control instead of binding to the database, thus achieving clean functional packaging in the application. And abstraction, indicating that the layer does not need to write any data access code.

The Whidbey development environment automatically boots the developer to complete the process of binding data controls to the business object, prompting developers to select a specific method from the business layer object to select, insert, update, and delete data, developers don't need Write code. Connection String Management Use the connection string management feature in WHIDBEY to avoid writing a hard-code database connection string in the ASP.NET page. Data Connection dialogs and wizards allow developers to choose to store the database connection string in the application's web.config file.

Store database connection strings in Web.config enables connection strings to manage and be more secure. If you want to change the database password, simply change one place. The ASP.NET Whidbey MMC administrator will automatically modify the connection string for the administrator to provide an easy-to-use interface. In addition, the tool can also be used to produce a connection string encryption on a server.

Better standard support use whidbey to easily establish a web application that meets industry standards and government standards. The Whidbey Development Environment includes new tools to support W3C standards and government standards, such as XHTML standards and accessibility standards.

All HTML code generated by the designer whiDbey consistent with the XHTML standard is in line with the XHTML standard. For example, the HTML code generated by all format options provided by the toolbar is fully compliant with the XHTML standard. All tags generated by the designer are all standard formats that meet the XHTML and are written correctly.

In addition to the XHTML designer support, the Whidbey also contains tools that help to write XHTML standards in the source code editor. When using the source code editor, you can verify the HTML source code according to XHTML 1.0 Transitional or XHTML 1.0 Strictt standard. If the code is not successfully verified, a description of the failed verification is provided.

Accessibility Checker Creating a Web page accessible to disabled people is a requirement for many government agencies. Now, Whidbey makes developers easily verify and obey accessibility criteria.

Developers can use integrated Accessibility Checker to quickly identify accessibility issues in the app. Accessibility Checker Verified the ASP.NET page in accordance with the Section 508 and W3C Web Content Accessibility (WCAG) standard and automatically outputs warnings and error messages to the task list.

Figure 18 Using Accessibility Checker

Summary The Microsoft Visual Studio of WHIDBEY is the best tool for developing data-driven web applications. It improvements in IntelliSense and code editor make the development of web applications easier and reduce the possibility of errors. It better support for data access and mobile devices helps developers create a wealth web application that is suitable for most devices. It improvements in project systems and deployment also make the release of web applications easier than ever.

(Finish)

Translator Note: Copyright is owned by the original, and the content is slightly changed or deleted.

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

New Post(0)