D
Dave
It seems that if I put just html inside a master page, everything
works fine. But if I put other controls (such as WebControls and/or my
own custom controls), I can't seem to access the content area in the
designer (on the master page or the content page that uses the master
page). The designer is just greyed out completely. It does seem to
work at runttime, but this is a problem for usability. I must be doing
something wrong.
Here's a simple example that I've tried and couldn't get to work:
If I put this in the master page it works fine:
<%@ Master Language="C#" AutoEventWireup="true"
CodeFile="pm2.master.cs" Inherits="pm" %>
<%@ Register TagPrefix="CL" Namespace="CodeLib.Web.UI.WebControls"
Assembly="CodeLib.Web.UI.WebControls" %>
<!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>
<body style="margin:0">
<form id="form1" runat="server">
<table>
<tr>
<td>
<asp:contentplaceholder id="contentMain" runat="server">
</asp:contentplaceholder>
</td>
</tr>
</table>
</form>
</body>
</html>
If I put this, it doesn't work:
<!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>
<body style="margin:0">
<form id="form1" runat="server">
<asp:Table runat="server" id="tblMain">
<asp:TableRow runat="server">
<asp:TableCell runat="server">
<asp:contentplaceholder id="contentMain" runat="server">
</asp:contentplaceholder>
</asp:TableCell>
</asp:TableRow>
</asp:Table>
</form>
</body>
</html>
NOTE: The only difference is one uses an HTML table and the other uses
a WebControl table.
Any help would be appreciated.
works fine. But if I put other controls (such as WebControls and/or my
own custom controls), I can't seem to access the content area in the
designer (on the master page or the content page that uses the master
page). The designer is just greyed out completely. It does seem to
work at runttime, but this is a problem for usability. I must be doing
something wrong.
Here's a simple example that I've tried and couldn't get to work:
If I put this in the master page it works fine:
<%@ Master Language="C#" AutoEventWireup="true"
CodeFile="pm2.master.cs" Inherits="pm" %>
<%@ Register TagPrefix="CL" Namespace="CodeLib.Web.UI.WebControls"
Assembly="CodeLib.Web.UI.WebControls" %>
<!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>
<body style="margin:0">
<form id="form1" runat="server">
<table>
<tr>
<td>
<asp:contentplaceholder id="contentMain" runat="server">
</asp:contentplaceholder>
</td>
</tr>
</table>
</form>
</body>
</html>
If I put this, it doesn't work:
<!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>
<body style="margin:0">
<form id="form1" runat="server">
<asp:Table runat="server" id="tblMain">
<asp:TableRow runat="server">
<asp:TableCell runat="server">
<asp:contentplaceholder id="contentMain" runat="server">
</asp:contentplaceholder>
</asp:TableCell>
</asp:TableRow>
</asp:Table>
</form>
</body>
</html>
NOTE: The only difference is one uses an HTML table and the other uses
a WebControl table.
Any help would be appreciated.