Frame Support at ASP.net 2.0
In ASP.net 2.0, it is using XHML page instead of HTML page. The XHTML page must be a well-formed and valid XML document.
The default is XHTML DOCTYPE
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
If you want to have frameset support. You can change the XHTML DOCTYPE to the following:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
You can right-click the tag and select which validation the element uses.
For example:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<head runat="server">
<title>Untitled Page</title>
</head>
<frameset rows="50%,50%">
<frame src =https://www.live.com />
<frame src ="https://www.asp.net" />
</frameset>
</html>
You may refer to this link: https://msdn2.microsoft.com/en-us/library/aa479043.aspx to learn more on the XHTML DOCTYPE.
Comments
- Anonymous
December 22, 2006
Never notice about that though. Thanks.