Link to home
Start Free TrialLog in
Avatar of Fraser_Admin
Fraser_AdminFlag for Canada

asked on

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

Avatar of Om Prakash
Om Prakash
Flag of India image

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

Avatar of Fraser_Admin

ASKER

doesn't work.  same message.  i was under the impression with 3.5 that you need to use the frameset doctype?
ASKER CERTIFIED SOLUTION
Avatar of Om Prakash
Om Prakash
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
strange it will not work on my machine at all.
will give you the points i guess it is me.