Friday, 16 September 2011

Using Frameset in asp.net.

Default.aspx:


<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

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

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Untitled Page</title>
</head>
<title>frameset element example</title>

<frameset cols="25%,50%,25%">
<frame name="frame_1" src="Default2.aspx">
<frame name="frame_2" src="Default3.aspx">
<frame name="frame_2" src="Default4.aspx">

<%--<noframes>Your system doesn't support frames.</noframes>--%>
</frameset>

</html>
<body>
<form id="form1" runat="server">
<div>

</div>
</form>
</body>
</html>

Default2.aspx:

<body bgcolor="#0000ff">

Default3.aspx:

<body bgcolor="#cc0066">

Default4.aspx:

<body bgcolor="#009900">

No comments:

Post a Comment