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?

[Webinar] Streamline your web hosting managementRegister Today

x
 
Om PrakashConnect With a Mentor Commented:
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
 
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
 
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
All Courses

From novice to tech pro — start learning today.