Ask a Question related to ASP.NET Building Controls, Design and Development.
-
MRe #1
Prevent certain tags inside custom control
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
MRe Guest
-
Add controls to my custom control with tags in HTML design view
I have created a custom control but would like to add other controls to it at design time. I want to be able to put custom control tags inside the... -
Set the width of a custom control with 2 controls inside
Hi there. I'm developing a custom controls. Inside this custom control, I want to put 2 controls: one textbox and one dropdownlist. I want to... -
Making a custom control with TD tags show in the designer
I have a custom control that consists of a label and a textbox and around each there are TD tags. So when I bring it into my ASPX page it looks... -
Problem overriding render method to format literal content of nested tags in custom control
Peter, I was under the mistaken impression that I was already overriding CreateChildControls to create the controls with the code: protected... -
Default button inside a custom control
I have seen examples on how to set the default button on a ASPX page with asp server controls Sub Page_Load() ...



Reply With Quote

