Search This Blog

Oct 30, 2012


The name “HTML view” is not entirely accurate. This view, which you access by clicking the HTML button at the bottom of the Web Form Designer as shown in Figure 4-5, shows the UI code for a Web Form. This code is primarily HTML, although there are several important differences between the UI code and vanilla HTML, which will be clearer later in this chapter and in the next chapter. Figure 4-6 shows the HTML view.

The idea of manually editing UI code will seem very foreign to developers who have only built Windows applications in a drag-and-drop environment. As I explained in Chapter 3, building Web applications is different and there are certain things that you can only do by going into the HTML source and modifying it directly. The HTML editor in Visual Studio is very powerful and much easier to use than a plain text editor such as Notepad. All syntax is highlighted, which helps in distinguishing tags and code from content.

Additionally, the editor incorporates Microsoft’s AutoComplete technology, which developers who have used Visual Basic 5.0 and above and Visual InterDev 6.0 will recognize. In HTML view, typing the angled brace (<) that signals the start of a tag will result in a menu popping up that displays tags that can be inserted, as illustrated in Figure. AutoComplete also provides lists of attributes that you can insert when building a tag. Figure shows this feature.

Solution Explorer

The Solution Explorer is a module that allows for solution management. A solution in Visual Studio is analogous to a group of projects. However, the Solution Explorer is much more than a simple embedded file manager.

It provides the facility for References to other local .NET classes. It also provides the Web References functionality, which allows for consumption of Web Services. Figure shows the Solution Explorer for the current project with only one Web Form.

1 comment:

Related Posts Plugin for WordPress, Blogger...