Using Design-Time Attributes with CustomControls

Discussion in 'ASP .Net Building Controls' started by Nathan Sokalski, Jan 3, 2008.

  1. 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.
    --
    Nathan Sokalski

    http://www.nathansokalski.com/
    Nathan Sokalski, Jan 3, 2008
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Rolf Welskes
    Replies:
    2
    Views:
    340
    Rolf Welskes
    Oct 5, 2006
  2. Nathan Sokalski

    Using Design-Time Attributes with CustomControls

    Nathan Sokalski, Jan 3, 2008, in forum: ASP .Net
    Replies:
    0
    Views:
    338
    Nathan Sokalski
    Jan 3, 2008
  3. Nathan Sokalski

    Using CustomControls in UserControls

    Nathan Sokalski, Feb 27, 2008, in forum: ASP .Net
    Replies:
    0
    Views:
    302
    Nathan Sokalski
    Feb 27, 2008
  4. Reiner Max

    Styles and CustomControls

    Reiner Max, Aug 15, 2004, in forum: ASP .Net Building Controls
    Replies:
    2
    Views:
    109
    Reiner Max
    Aug 15, 2004
  5. Nathan Sokalski

    Using CustomControls in UserControls

    Nathan Sokalski, Feb 27, 2008, in forum: ASP .Net Building Controls
    Replies:
    0
    Views:
    691
    Nathan Sokalski
    Feb 27, 2008
Loading...

Share This Page