Ask a Question related to ASP.NET Building Controls, Design and Development.
-
~~~ .NET Ed ~~~ #1
Error: Webcontrol must have items of type X. SubLinks is of type Y
Hi,
I have made a web control that has two sorts of items. The first is the
Links property that has a persistence attribute of InnerProperty, the other
is SubLinks with the same attribute. Both are of the same collection type.
The control has its own designer class (although it doesn't render in Design
mode like the others I have done, it
still beats me).
The container web control would be in the aspx page as follows (simplified
way)
<cc1:CtPageHeader .....>
<SubLinks>
<cc1:CtPageHeaderLinkItem LinkURL="demo.aspx" Text="Demo" ...</SubLinks>></cc1:CtPageHeaderLinkItem>
<Links>
<cc1:CtPageHeaderLinkItem LinkURL="url" Text="text"></cc1:MyControlItem>
</Links>
</cc1:CtPageHeader >
When I try to run it I get the following error:
Line 37: <cc1:CtPageHeader id="CtPageHeader1" style="Z-INDEX: 103; LEFT:
24px; POSITION: absolute; TOP: 24px"
Line 38: runat="server" Width="472px"
ConfigPath="e:\WebSites\Config\CtPageHeader.config " EnableViewState="False">
Line 39: <SubLinks>
Line 40: <cc1:CtPageHeaderLinkItem LinkURL="demo.aspx"
LinkItemType="SectionLink" Text="Products"
ID="ctPageHeaderLinkItem1"></cc1:CtPageHeaderLinkItem>
Line 41: <cc1:CtPageHeaderLinkItem LinkURL="about.aspx" Text="About Us"
ID="ctPageHeaderLinkItem2"></cc1:CtPageHeaderLinkItem>
For debugging I tried adding an Add(HtmlGenericControl) overload to the
custom item collection in hopes of catching it (breakpoint) and then reading
the LinkURL & Text attributes of the generic control, but that did not work
as it didn't get there. Where should I be looking? where can I set a
breakpoint for this?
~~~ .NET Ed ~~~ Guest
-
ldap DirectoryServices.DirectoryEntry System.NotImplementedException: Handling of this ADSVALUE type is not yet implemented (type = 0xb).
hi, i'm trying to make a query to a ldap server (version v2 or v3 doen't matter) with c#. the query works just fine but the problem is that i... -
Problem with character palette and Tracking field: can't type zero after type is modified
System: Illustrator CS, Panther 10.3.3 Try this: Create a few characters of type. Select some letters and change their tracking (Option + Command... -
Cast from type 'Field' to type 'String'
Hi, Getting the above error - further info shown below Line 36: II2 = 0 Line 37: response.write ("var questions" & II & " = new Array();"... -
cast from datetime type to smalldatetime type?
Hi, How can I cast from datetime type to smalldatetime type. I get the records from a table which has got a datetime type column but I want to... -
Cast from type 'DBNull' to type 'String' is not valid error
Trying to add an insert button Sub btnAddRow_Click event for adding a row to the datagrid and dataset back to SQL. Had it working per the... -
~~~ .NET Ed ~~~ #2
Re: Error: Webcontrol must have items of type X. SubLinks is of type Y
Nobody has any pointers regarding this problem?
"~~~ .NET Ed ~~~" <tiredofspam@abolishspam.now> wrote in message
news:OKodvUOxEHA.484@TK2MSFTNGP09.phx.gbl...other> Hi,
> I have made a web control that has two sorts of items. The first is the
> Links property that has a persistence attribute of InnerProperty, theDesign> is SubLinks with the same attribute. Both are of the same collection type.
> The control has its own designer class (although it doesn't render inText="text"></cc1:MyControlItem>> mode like the others I have done, it
> still beats me).
>
> The container web control would be in the aspx page as follows (simplified
> way)
>
> <cc1:CtPageHeader .....>
> <SubLinks>
> <cc1:CtPageHeaderLinkItem LinkURL="demo.aspx" Text="Demo" ...> </SubLinks>> ></cc1:CtPageHeaderLinkItem>
> <Links>
> <cc1:CtPageHeaderLinkItem LinkURL="url"EnableViewState="False">> </Links>
> </cc1:CtPageHeader >
>
> When I try to run it I get the following error:
>
> Line 37: <cc1:CtPageHeader id="CtPageHeader1" style="Z-INDEX: 103; LEFT:
> 24px; POSITION: absolute; TOP: 24px"
> Line 38: runat="server" Width="472px"
> ConfigPath="e:\WebSites\Config\CtPageHeader.config "reading> Line 39: <SubLinks>
> Line 40: <cc1:CtPageHeaderLinkItem LinkURL="demo.aspx"
> LinkItemType="SectionLink" Text="Products"
> ID="ctPageHeaderLinkItem1"></cc1:CtPageHeaderLinkItem>
> Line 41: <cc1:CtPageHeaderLinkItem LinkURL="about.aspx" Text="About Us"
> ID="ctPageHeaderLinkItem2"></cc1:CtPageHeaderLinkItem>
>
>
> For debugging I tried adding an Add(HtmlGenericControl) overload to the
> custom item collection in hopes of catching it (breakpoint) and thenwork> the LinkURL & Text attributes of the generic control, but that did not> as it didn't get there. Where should I be looking? where can I set a
> breakpoint for this?
>
>
>
~~~ .NET Ed ~~~ Guest
-
~~~ .NET Ed ~~~ #3
Re: Error: Webcontrol must have items of type X. SubLinks is of type Y
Nobody knows this one? I haven't figured it out yet.
"~~~ .NET Ed ~~~" <tiredofspam@abolishspam.now> wrote in message
news:OKodvUOxEHA.484@TK2MSFTNGP09.phx.gbl...other> Hi,
> I have made a web control that has two sorts of items. The first is the
> Links property that has a persistence attribute of InnerProperty, theDesign> is SubLinks with the same attribute. Both are of the same collection type.
> The control has its own designer class (although it doesn't render inText="text"></cc1:MyControlItem>> mode like the others I have done, it
> still beats me).
>
> The container web control would be in the aspx page as follows (simplified
> way)
>
> <cc1:CtPageHeader .....>
> <SubLinks>
> <cc1:CtPageHeaderLinkItem LinkURL="demo.aspx" Text="Demo" ...> </SubLinks>> ></cc1:CtPageHeaderLinkItem>
> <Links>
> <cc1:CtPageHeaderLinkItem LinkURL="url"EnableViewState="False">> </Links>
> </cc1:CtPageHeader >
>
> When I try to run it I get the following error:
>
> Line 37: <cc1:CtPageHeader id="CtPageHeader1" style="Z-INDEX: 103; LEFT:
> 24px; POSITION: absolute; TOP: 24px"
> Line 38: runat="server" Width="472px"
> ConfigPath="e:\WebSites\Config\CtPageHeader.config "reading> Line 39: <SubLinks>
> Line 40: <cc1:CtPageHeaderLinkItem LinkURL="demo.aspx"
> LinkItemType="SectionLink" Text="Products"
> ID="ctPageHeaderLinkItem1"></cc1:CtPageHeaderLinkItem>
> Line 41: <cc1:CtPageHeaderLinkItem LinkURL="about.aspx" Text="About Us"
> ID="ctPageHeaderLinkItem2"></cc1:CtPageHeaderLinkItem>
>
>
> For debugging I tried adding an Add(HtmlGenericControl) overload to the
> custom item collection in hopes of catching it (breakpoint) and thenwork> the LinkURL & Text attributes of the generic control, but that did not> as it didn't get there. Where should I be looking? where can I set a
> breakpoint for this?
>
>
>
~~~ .NET Ed ~~~ Guest



Reply With Quote

