N
Nathan Bidwell
I have a user control I'm using to wrap the content of all pages on a
site. I've successfully added a template property which will correctly
render anything inside of it. The resulting aspx looks something like this:
<%@ Page language="c#" Codebehind="wrapTest.aspx.cs"
AutoEventWireup="false" Inherits="test.wrapTest" %>
<%@ Register TagPrefix="uc1" TagName="wrapper"
Src="controls/wrapper.ascx" %>
<uc1:wrapper id="Wrapper" runat="server">
<Title>A Test Page</Title>
<Content>
<asp:label runat="server" id="foo" Text="bar" />
</Content>
</uc1:wrapper>
The problem is that Visual Studio's design view becomes useless with the
message "Parser Error: Type 'System.Web.UI.UserControl' does not have a
property named 'Title'." What I don't understand is why the designer
doesn't pick up the derived UserControl type of 'wrapper'.
Any help would be appreciated.
Nathan
site. I've successfully added a template property which will correctly
render anything inside of it. The resulting aspx looks something like this:
<%@ Page language="c#" Codebehind="wrapTest.aspx.cs"
AutoEventWireup="false" Inherits="test.wrapTest" %>
<%@ Register TagPrefix="uc1" TagName="wrapper"
Src="controls/wrapper.ascx" %>
<uc1:wrapper id="Wrapper" runat="server">
<Title>A Test Page</Title>
<Content>
<asp:label runat="server" id="foo" Text="bar" />
</Content>
</uc1:wrapper>
The problem is that Visual Studio's design view becomes useless with the
message "Parser Error: Type 'System.Web.UI.UserControl' does not have a
property named 'Title'." What I don't understand is why the designer
doesn't pick up the derived UserControl type of 'wrapper'.
Any help would be appreciated.
Nathan