Hello,
I have a custom web control I've built, which uses child controls to build properties of the control. (Like a DropDownList uses ListItem controls to build the list.)
The control looks like this:
<ns:MyControl ID="Main" runat="server">
<Property1 Color="#fff" Text="Test content" />
<Property2 Color="#000" Text="Second Test" />
</ns:MyControl>
The control is working perfectly. However, Intellisense is not working for the child controls, and the VS validation is putting a red squiggly underline under the child tags names and property names. (I tried to simulate above.)
I know there is a way to fix it, but the Microsoft documentation on this is incredibly confusing, and it seems there must be a better way.
This is all I found on the subject: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaspp/html/ASPNet-AddDesignTimeSupport.asp
(Scroll down to HTML View Support: Custom Schemas and Visual Studio Annotations)
Any help on how to do get Intellisense working for the child controls, and getting the validator to recoignize the child tags and properties would be greatly appreciated!
http://blogs.lotterypost.com/speednet