M
MRe
Hi,
I'm not sure if I can ask here as it may be a visual studio specific
question, but maybe[?]
Is it possible to add a constraint to a custom control to prevent controls
that are not inherited from a specified class from showing up in
intellisence and/or displaying an error during compile when adding children
to that control; so if I have a control that builds a toolbar, used like..
<cel:toolbar runat="server">
<cel:button runat="server" name="joe" action="act" />
<cel:textbox runat="server" name="bob" action="ion" />
<... other cel:interface dealies ... />
</cel:toolbar>
..then inside <cel:toolbar> I only want <cel:button> <cell:textbox>
appearing in intellisence, and not <asp:...> and <hr> and whatnot. At the
moment I have it write an error at runtime if an illegal tag is added, it
would be nice to catch it sooner.
Thank you for any helps,
Regards,
Eliott
I'm not sure if I can ask here as it may be a visual studio specific
question, but maybe[?]
Is it possible to add a constraint to a custom control to prevent controls
that are not inherited from a specified class from showing up in
intellisence and/or displaying an error during compile when adding children
to that control; so if I have a control that builds a toolbar, used like..
<cel:toolbar runat="server">
<cel:button runat="server" name="joe" action="act" />
<cel:textbox runat="server" name="bob" action="ion" />
<... other cel:interface dealies ... />
</cel:toolbar>
..then inside <cel:toolbar> I only want <cel:button> <cell:textbox>
appearing in intellisence, and not <asp:...> and <hr> and whatnot. At the
moment I have it write an error at runtime if an illegal tag is added, it
would be nice to catch it sooner.
Thank you for any helps,
Regards,
Eliott