This documentation is archived and is not being maintained.

Select a Frameset Template Dialog Box

Visual Studio .NET 2003

Use the Select a Frameset Template dialog box to add an HTML frameset document to a Web project. An HTML frameset displays multiple, independent, scrollable regions called frames within the Web browser window.

The Select a Frameset Template dialog box opens when you add an HTML frameset document to a Visual Basic .NET, Visual C# .NET, or Visual J# .NET Web project from the Add New Item dialog box. From the Project menu, select Add HTML Page. In the Add New Item dialog box, select the Frameset icon, enter a Name for the new frameset, and click Open.

Framesets
Lists the model framesets that can be inserted. Select the desired frameset.
Preview
Displays a diagram of the selected frameset.
Description
Explains how the frames in the selected frameset will interact.
OK
Adds the selected model frameset to your project.
Cancel
Closes the Select a Frameset Template dialog box without adding a frameset.

Completing Framesets

A frameset begins with a !DOCTYPE declaration, followed by a <HEAD> section and one or more <FRAMESET> sections. Each <FRAMESET> element can contain embedded <FRAMESET> and <FRAME> elements. A <FRAME> displays the HTML page specified in its SRC attribute in some portion of the Web browser window.

To change the page displayed in a <FRAME>, set the TARGET of an <A> hyperlink element to match the name of the desired <FRAME>. To ensure that every <A> link that has no other target displays the page it calls in a particular frame, add a <BASE target="frame"> element to the <HEAD> of the link page.

For more information, see Introduction to Framesets, Creating an HTML Frameset, and Modifying HTML Framesets in Design View.

Model Framesets

Various model framesets can be added to a Web project from the Select a Frameset Template dialog box. Instructions embedded in the markup explain how to finish configuring the frameset and the HTML documents it will display.

Note   These instructions are displayed when you edit the frameset in HTML view.

For further details, click the name of any model frameset:

Each entry that follows gives the name and a brief description of a model frameset, and provides the instructions for completing it that are embedded in its markup.

Banner
Creates a banner frame at the top, a contents frame bottom left, and a main frame bottom right. Links in the contents frame change the page displayed in the main frame. The HTML markup for this frameset includes these instructions for completing it:

================================================================
INSTRUCTIONS FOR COMPLETING THIS BANNER AND CONTENT FRAMESET
1. Add the URL of your src="" page for the "banner" frame.
2. Add the URL of your src="" page for the "contents" frame.
3. Add the URL of your src="" page for the "main" frame.
4. Add a BASE target="main" element to the HEAD of your
"contents" page, to set "main" as the default frame
where its links will display other pages.
================================================================

Contents
Creates a contents frame on the left and a main frame on the right. Links in the contents frame change the page displayed in the main frame. The HTML markup for this frameset includes these instructions for completing it:

================================================================
INSTRUCTIONS FOR COMPLETING THIS CONTENTS FRAMESET
1. Add the URL of your src="" page for the "contents" frame.
2. Add the URL of your src="" page for the "main" frame.
3. Add a BASE target="main" element to the HEAD of your
"contents" page, to set "main" as the default frame
where its links will display other pages.
================================================================

Footer
Creates a main frame with a footer frame beneath it. Links in the footer frame change the page displayed in the main frame. The HTML markup for this frameset includes these instructions for completing it:

================================================================
INSTRUCTIONS FOR COMPLETING THIS FOOTER FRAMESET
1. Add the URL of your src="" page for the "main" frame.
2. Add the URL of your src="" page for the "footer" frame.
3. Add a BASE target="main" element to the HEAD of your
"footer" page, to set "main" as the default frame
where its "footer" links will display other pages.
================================================================

Footnotes
Creates a main frame with a footnotes frame beneath it. Links in the main frame change the page displayed in the footnotes frame. The HTML markup for this frameset includes these instructions for completing it:

================================================================
INSTRUCTIONS FOR COMPLETING THIS FOOTNOTES FRAMESET
1. Add the URL of your src="" page for the "main" frame.
2. Add the URL of your src="" page for the "footnotes" frame.
3. Add a BASE target="footnotes" element to the HEAD of
your "main" page, to set "footnotes" as the default
frame where its links will display other pages.
================================================================

Header
Creates a header frame with a main frame beneath it. Links in the header frame change the page displayed in the main frame. The HTML markup for this frameset includes these instructions for completing it:

================================================================
INSTRUCTIONS FOR COMPLETING THIS HEADER FRAMESET
1. Add the URL of your src="" page for the "header" frame.
2. Add the URL of your src="" page for the "main" frame.
3. Add a BASE target="main" element to the HEAD of
your "header" page, to set "main" as the default
frame where its links will display other pages.
================================================================

Header, Footer, and Contents
Creates a header frame at the top, a contents frame middle left, a main frame middle right, and a footer frame on the bottom. Links in the header and footer frames change the page displayed in the contents frame. Links in the contents frame change the page displayed in the main frame. The HTML markup for this frameset includes these instructions for completing it:

================================================================
INSTRUCTIONS FOR COMPLETING THIS HEADER-FOOTER-CONTENTS FRAMESET
1. Add the URL of your src="" page for the "header" frame
2. Add the URL of your src="" page for the "contents" frame
3. Add the URL of your src="" page for the "main" frame
4. Add the URL of your src="" page for the "footer" frame
5. Add a BASE target="contents" element to the HEAD of
your "header" page, to set "contents" as the default
frame where its links will display other pages.
6. Add a BASE target="contents" element to the HEAD of
your "contents" page, to set "main" as the default
frame where its links will display other pages.
7. Add a BASE target="contents" element to the HEAD of
your "footer" page, to set "contents" as the default
frame where its links will display other pages.
================================================================

Horizontal Split
Creates independent top and bottom frames. The HTML markup for this frameset includes these instructions for completing it:

================================================================
INSTRUCTIONS FOR COMPLETING THIS HORIZONTAL SPLIT FRAMESET
1. Add the URL of your src="" page for the "top" frame
2. Add the URL of your src="" page for the "bottom" frame.
================================================================

Nested Hierarchy
Creates a left frame, and splits the right side into rtop and rbottom frames. Links in the left frame change the page displayed in the rtop frame. Links in the rtop frame change the page displayed in the rbottom frame. The HTML markup for this frameset includes these instructions for completing it:

================================================================
INSTRUCTIONS FOR COMPLETING THIS NESTED HIERARCHY FRAMESET
1. Add the URL of your src="" page for the "left" frame.
2. Add the URL of your src="" page for the "rtop" frame.
3. Add the URL of your src="" page for the "rbottom" frame.
4. Add a BASE target="rtop" element to the HEAD of
your "left" page, to set "rtop" as the default
frame where its links will display other pages.
5. Add a BASE target="rbottom" element to the HEAD of
your "rtop" page, to set "rbottom" as the default
frame where its links will display other pages.
================================================================

Top-Down Hierarchy
Creates a top frame, a middle frame, and a bottom frame. Links in the top frame change the page displayed in the middle frame. Links in the middle frame change the page displayed in the bottom frame. The HTML markup for this frameset includes these instructions for completing it:

<pre id="p2">
================================================================
INSTRUCTIONS FOR COMPLETING THIS TOP-DOWN HIERARCHY FRAMESET
1. Add the URL of your src="" page for the "top" frame.
2. Add the URL of your src="" page for the "middle" frame.
3. Add the URL of your src="" page for the "bottom" frame.
4. Add a BASE target="middle" element to the HEAD of your
"top" page, to set "middle" as the default frame
where its links will display other pages.
5. Add a BASE target="bottom" element to the HEAD of your
"middle" page, to set "bottom" as the default frame
where its links will display other pages.
================================================================

Vertical Split
Creates independent left and right frames. The HTML markup for this frameset includes these instructions for completing it:

================================================================
INSTRUCTIONS FOR COMPLETING THIS VERTICAL SPLIT FRAMESET
1. Add the URL of your src="" page for the "left" frame.
2. Add the URL of your src="" page for the "right" frame.
================================================================

See Also

Create URL Dialog Box | Editing HTML Pages in Design View | Document Outline Window | Editing HTML

Show: