Export (0) Print
Expand All

General Tab, DOCUMENT Property Pages Dialog Box

Visual Studio .NET 2003

By choosing General on the DOCUMENT Property Pages dialog box, you can set properties governing the structure and appearance of the current Visual Studio document. To access this dialog box, open a document for editing. With no elements on the page selected, choose Property Pages from the View menu, and then click General to access the following options:

Page title
Sets the text string inserted between the <TITLE></TITLE> tags in the <HEAD> of your Web page. When your page is open at the topmost level within your browser, its title displays in the title bar of your browser window.
Background image
Identifies an image file to display as the background for your page. You can either type in the image path or click the ellipsis (...) button and navigate to the file's location.

In some cases, the full image path is inserted into the HTML markup for the BODY element as the value of the BACKGROUND property:

<BODY BACKGROUND="file:///C:\Docs\VS7Docs\MySolution\banner.gif">

Edit this markup in HTML view if you prefer to use relative paths:

<BODY BACKGROUND="banner.gif">

If you are using CSS styles, you also can choose to remove the BACKGROUND property from the BODY element, and instead define the background-image property in a CSS style:

BODY {background-image:url(banner.gif); font-family:Verdana, Helvetica, sans-serif; font-size:9pt;}
Nonscrolling background
By default, the background image scrolls as you scroll the page. Select this checkbox to disable background scrolling.
Target Schema
This drop-down menu makes it possible for you to select the Web browser for which your HTML document will be designed. To use CSS styles, you must select a Web browser that supports HTML 4.0 or later. For more information, see Setting the targetSchema Property of an HTML Document.
Character Set
From this pop-up, you can select the default character set for the current Web page. Changing the character set property of your Web page inserts a META element into the HEAD portion of your document. For example:

<META HTTP-EQUIV="Content-Type" content="text/html; charset=iso-8859-1">

The Windows operating system provides a broad selection of international character sets. To change the character set that Windows maps to your keyboard, select Control Panel from the Start menu, choose Keyboard Properties, and click the Language tab.

Page Layout
Sets element positioning preferences for the current page to LinearLayout (default) or GridLayout. LinearLayout lets the client Web browser position elements one after the other, as they occur in the markup for the page. GridLayout permits absolute positioning of elements at specified locations on the page, activates the positioning grid in Design view, and adds an MS POSITIONING attribute to the opening tag of the <BODY> element:

<BODY MS POSITIONING="GridLayout" ...>

With GridLayout selected and Snap to Grid turned on, when you release the mouse after dragging an element into the desired areas of your Web page, its position is aligned automatically with the nearest horizontal and vertical grid lines. The positioning attributes for this element are adjusted accordingly. For more information, see Setting the pageLayout Property of an HTML Document.

Show Grid
By default, the positioning grid appears in Design view of the HTML Designer when you select GridLayout as your Page Layout preference. Clear this check box to conceal the grid. For more information, see Setting the showGrid Property of an HTML Document.

Default scripting language

Sets the default scripting language for client-side event handlers on the current Web page. The available languages are JavaScript (default) and VBScript. For more information, see Setting the defaultClientScript Property of an HTML Document.
This option for ASP.NET Web forms specifies the language used on the server when compiling inline rendering and code declaration blocks within .aspx pages. Available .NET-supported languages include Visual Basic, C#, and Jscript .NET.
Note   The language property of an .aspx Web form is commonly set when the document is created. It does not often need to be reset here. For more detailed information, see the @ Page directive.

See Also

Positioning HTML Elements in Design View | General, HTML Designer, Options Dialog Box | General, HTML/XML, Text Editor, Options Dialog Box | Color and Margins Tab, DOCUMENT Property Pages Dialog Box | Keywords Tab, DOCUMENT Property Pages Dialog Box

© 2014 Microsoft