frameset in asp.net 3.5

i'm trying to get a frameset working in asp.net 3.5 but i keep getting a validation warning.

Validation (XHTML 1.0 Transitional) Element 'frame' is not supported.

I am using the frameset doctype, so i'm unsure why i'm getting this?

Thanks
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Main.aspx.vb" Inherits="Main" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">

<html>
<head>
<title>A simple frameset document</title>
</head>
<body>
    <frameset cols="20%, 80%">
      <frameset rows="100, 200">
          <frame src="contents_of_frame1.html">
          <frame src="contents_of_frame2.gif">
      </frameset>  
    </frameset>
</body>
</html>

Open in new window

Fraser_AdminAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Om PrakashCommented:
please check the example:

More details:
http://www.15seconds.com/issue/030528.htm
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
	<head>
		<title>How to Work with frames in .Net</title>
		<meta name="vs_defaultClientScript" content="JavaScript">
		<meta name="vs_targetSchema" 
content="http://schemas.microsoft.com/intellisense/ie5">
		<meta name="GENERATOR" content="Microsoft Visual Studio.NET 
7.0">
		<meta name="ProgId" content="VisualStudio.HTML">
		<meta name="Originator" content="Microsoft Visual Studio.NET 
7.0">
	</head>
	<frameset border="1" frameborder="1" framespacing="0" 
cols="30%,70%">

<frame name="left frame" src="leftframe.aspx"/>
<frame name="right frame" src="rightframe.aspx"/>

</frameset>
</html>

Open in new window

0
Fraser_AdminAuthor Commented:
doesn't work.  same message.  i was under the impression with 3.5 that you need to use the frameset doctype?
0
Om PrakashCommented:
I tried the frame example and it is working fine.
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="frame.aspx.cs" Inherits="csharpwebdev.frame" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html> 
        <head> 
                <title>How to Work with frames in .Net</title> 
                <meta name="vs_defaultClientScript" content="JavaScript"> 
                <meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5"> 
                <meta name="GENERATOR" content="Microsoft Visual Studio.NET  7.0"> 
                <meta name="ProgId" content="VisualStudio.HTML"> 
                <meta name="Originator" content="Microsoft Visual Studio.NET 7.0"> 
        </head> 
 <frameset border="1" frameborder="1" framespacing="0" cols="30%,70%">  
        <frame name="left frame" src="leftframe.aspx"/> 
        <frame name="right frame" src="rightframe.aspx"/> 
 </frameset> 
</html>

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Fraser_AdminAuthor Commented:
strange it will not work on my machine at all.
0
Fraser_AdminAuthor Commented:
will give you the points i guess it is me.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.