Hi,
Hopefully an easy one, I have created a Custom Repeater control that extends System.Web.UI.WebControls.Repeater. I Have added two ITemplate Properties to this control and add these when required and in the desired manner. Everything is working absolutely fine but I'm having a problem in Visual Studio having these new Templates recognised.
When I add the repeater to the page, e.g:
<my:Repeater ID="rpt" runat="server" NewProperty="This works!">
<NewTemplate>The contents go here...</NewTemplate>
</my:repeater>
Everything is working (woo!) and when I add the attributes 'NewProperty', a property I have added, can be seen in Intellisense in Visual Studio as expected (woo!). Annoyingly though the new ITemplate's are not available via Intellisense and this has to be recalled from my knowledge of them being there (boo!). The new template also has the 'problem' underline with the following message:
Validation (XHTML 1.0 Transitional): Element 'newtemplate' is not supported.
It's not a major issue by any means as when compiled the custom repeater works and the templates behave as they need to, it's more of an annoyance that would be great to sort out.
Thanks for any help!
Steve