using a frameset in an asp.net application

HawaiiDragon
HawaiiDragon used Ask the Experts™
on
hello experts I am trying to use a frameset in my asp.net application but I cant get it to work. Can someone please tell me what I am doing wrong. I am using Visual Studio 2010
<frameset  rows="150,550">
            <frameset cols="150,590">
    <frame name="corner" src="http://www.bestbuy.com/" scrolling="no" frameborder="0" noresize>
    <frame name="header" src="http://www.gamestop.com/" marginwidth="0" marginheight="0" scrolling="no" frameborder="0" noresize>
            </frameset>

            <frameset cols="150,590">
   <frame name="menu" src="http://www.seibertron.com/news/index.php" marginwidth="0" marginheight="0 "scrolling="auto" frameborder="0" noresize>
    <frame name="main" src="http://www.google.com/" marginwidth="0" marginheight="0" scrolling="auto" frameborder="0" noresize>
            </frameset>

</frameset>

Open in new window

Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Are you using the proper DOCTYPE:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">

Author

Commented:
Im not sure as I have never used a frame set before.
Make sure that line I posted is at the top of the html file you are using (replace any existing DOCTYPE line that might be in there)

Also, I feel it's my duty to advise you against framesets.  If you are going to be using this site as a public facing website, then you do not want to use framesets.  There are a number of reasons... mainly involving accessibility and search engines.

Also, if you have never used frames before, I suggest you start with some tutorials.  Google it:
Try this for starters:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>My Home Page</title>
</head>

<frameset rows="80,*" cols="80,*" frameborder="no" border="0" framespacing="0">
    <frame src="file:///E|/Sites/Net Effect/neteffectservices.com/_Kentico_SourceCode/CMS/UntitledFrame-4" name="leftFrame" scrolling="No" noresize="noresize" id="leftFrame" title="leftFrame" />
    <frame src="file:///E|/Sites/Net Effect/neteffectservices.com/_Kentico_SourceCode/CMS/UntitledFrame-2" name="mainFrame" id="mainFrame" title="mainFrame" />
    <frame src="file:///E|/Sites/Net Effect/neteffectservices.com/_Kentico_SourceCode/CMS/UntitledFrame-3" name="leftFrame" scrolling="No" noresize="noresize" id="leftFrame" title="leftFrame" />
    <frame src="file:///E|/Sites/Net Effect/neteffectservices.com/_Kentico_SourceCode/CMS/Untitled-1" name="mainFrame" id="mainFrame" title="mainFrame" />
</frameset>
<noframes></noframes>

</html>

Open in new window

Author

Commented:
Thank you

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial