Export (0) Print
Expand All

Creating an HTML Frameset

Visual Studio .NET 2003

An HTML frameset document displays two or more HTML pages at once in the Web browser window. In the HTML Designer, you can use the Select a Frameset Template dialog box to add framesets to an HTML project, and then use the Design view editing surface to add, resize, and delete frames. For more information, see Modifying HTML Framesets in Design View.

Use the Select a Frameset Template dialog box to add a frameset.

To add a new HTML frameset to a Web project

  1. Select a Web project in Solution Explorer.
  2. On the Project menu, select Add, and choose Add New Item.
  3. In the Add New Item dialog box, choose Web Project Items in the left pane, and select Frameset in the right pane. For more information, see Add New Item Dialog Box.
  4. Name the new frameset, and then click Open.

    The Select a Frameset Template dialog box opens.

  5. Select a template in the Framesets list, and click OK.
    Note   The HTML markup for each frameset template includes instructions on how to complete it. You will need to assign an HTML page to each frame. Use the <noframes> element to enclose a version of your page for visitors whose Web browsers do not support frames.

To assign a name to a frame

  1. Open an HTML frameset for editing in Design view.
  2. Click inside the desired frame to select it.
  3. Open the Properties window.

    The properties of the selected <FRAME> are displayed.

  4. Select the name property, and enter a name.
    Tip   To configure a hyperlink to display a page in the selected frame, use the name of the frame as the target of the hyperlink.

To assign an HTML page to a frame

  1. Open an HTML Frameset for editing in Design view.
  2. Click inside the desired frame to select it.
  3. On the Frames menu, choose Set Page for Frame.

    - or -

    Open the Properties window, choose the src property for the selected <FRAME>, and click the ellipsis (...) button that appears.

    The Create URL dialog box opens.

  4. Choose an HTML page to display in the selected frame.

    You can either type the desired file path and name in the URL field or browse to a file location and create the required uniform resource locator (URL) string automatically. For more information, see Create URL Dialog Box.

You can store framesets as Solution Items, and then copy the desired frameset into a particular Web project.

To copy an HTML frameset from the Solution Items list into a Web project

  1. In Solution Explorer, select the desired frameset file in the Solution Items list.
  2. Drag this file onto the name of the target Web Project.

    The frameset is copied into the project.

You also can add framesets to Web projects from the Miscellaneous Files list.

To copy an HTML frameset from the Miscellaneous Files list into a Web project

  1. In Solution Explorer, select the desired frameset file in the Miscellaneous Files list.
  2. Drag this file onto the name of the target Web project.

    The Save File As dialog box opens.

  3. Type a name for the copied file in the File name field.
  4. Save this copy of the frameset in the folder for project items. By default, this is the solution folder.

See Also

Introduction to Framesets | Modifying HTML Framesets in Design View | Assigning HTML Pages to Frames in a Frameset | FRAMESET Element | frameSet Object | FRAME Element | frame Object | NAME Attribute | name Property | SRC Attribute | src Property | TARGET Attribute | target Property | NOFRAMES Element | noframes Object

Show:
© 2014 Microsoft