Using Design-Time Attributes with CustomControls

  • Thread starter Nathan Sokalski
  • Start date
N

Nathan Sokalski

I have tried to add Design-Time Attributes to my controls, but they do not
seem to be making any difference. Here is an example:

<ToolboxData("<{0}:parameter runat=server/>")> _
Public Class Parameter : Inherits System.Web.UI.Control
End Class

When I drag it from the ToolBox, I still get the following:

<NJS:parameter ID="Parameter1" runat="server"></NJS:parameter>

I know that it is possible to specify what comes up when dragging from the
ToolBox, because many of the controls that come with ASP.NET include
different things (Image is self-closing, Panel includes Height & Width, and
other controls have stuff as well). Can somebody tell me what I'm doing
wrong here? Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top