Saroj13
asked on
how to Rewrite HTML frameset to asp.net masterpage in asp.net and C#?
Hi,
I have default.aspx page using frameset. I want to convert this using Masterpage. in asp.net and c#.
I have default.aspx page using frameset. I want to convert this using Masterpage. in asp.net and c#.
<%@ Page %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
</HEAD>
<frameset rows="15%,85%" border="0" frameBorder="0" frameSpacing="0">
<frame src="AdminPage.aspx" NAME="Banner" scrolling="no"/>
<FRAMESET border="0" frameBorder="0" frameSpacing="0" COLS="30%,70%">
<FRAME SRC="index.aspx" NAME="frameName1">
<FRAME SRC="blank.htm" NAME="frameName2">
</FRAMESET>
</frameset>
</HTML>
This question needs an answer!
Become an EE member today
7 DAY FREE TRIALMembers can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
If you want the frame in the master - try this.
If you want the frame in the content page - then take it out of here and load it into the content page.(Different .aspx page)
<%@ Page %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD> </HEAD>
<body>
<frameset rows="15%,85%" border="0" frameBorder="0" frameSpacing="0">
<frame src="AdminPage.aspx" NAME="Banner" scrolling="no"/>
<FRAMESET border="0" frameBorder="0" frameSpacing="0" COLS="30%,70%">
<FRAME SRC="index.aspx" NAME="frameName1">
<FRAME SRC="blank.htm" NAME="frameName2">
</FRAMESET>
</frameset>
<asp:contentplaceholder id="contentplaceholder1" runat="server"></asp:conte
</body>
</HTML>
Content page:
<asp:Content ID="Content1" ContentPlaceHolderID="cont
<table cellpadding="0" cellspacing="0" style="width: 815px">
<tr><asp:Content ID="Content1" ContentPlaceHolderID="cont
<table cellpadding="0" cellspacing="0" style="width: 815px">
<tr>
<td style="width: 5px;"></td>
<td> some content </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td style="width: 5px;"></td>
<td> some content </td>
<td> </td>
<td> </td>
</tr>
</table>
</asp:Content>