How to Display a Frameset in ASP.NET
The ASP.NET programming interface includes an HTML editor, so you can add HTML elements such as a frameset to Web pages. There is no tool for a frameset in the Visual Studio .NET toolbox, so you must manually type the frameset code in the HTML designer. The frameset tags are a wrapper for the frames you want to place on your pages. After you type the frameset tags into your code, you must add the "frame" tags within the frameset tags.
Instructions
-
-
1
Click the Windows "Start" button and select "All Programs." Click "Microsoft .NET," then click "Visual Studio."
-
2
Click the "File" menu button, then click "Open Project." Double-click the HTML or ASP project you want to edit. After the project loads, right-click the file you want to edit in "Solution Explorer." Click "View Design."
-
-
3
Click the "Code" tab at the bottom of the active HTML form that opens from Step 2. The .NET software shows you the HTML code for the form.
-
4
Scroll down to where you want to display the frameset on the page. Type the following code to add the frameset:
<frameset cols="50%,50%">
</frameset>
This code sets up a frameset that will contain two frames, and each frame takes up 50 percent of the Web page's viewing space.
-
5
Add the frame tags within the frameset tags created in Step 4. The following code adds two frames and displays the code from "frame1.html" and "frame2.html" pages in the frames:
<frame src="frame1.html" />
<frame src="frame2.html" />
Replace the "src"' property with the Web pages on your site that you want to display in the frames.
-
1