Using Design-Time Attributes with CustomControls

Discussion in 'ASP .Net' 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. Advertisements

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. Umut Tezduyar
    Replies:
    0
    Views:
    520
    Umut Tezduyar
    Nov 22, 2005
  2. Rolf Welskes
    Replies:
    2
    Views:
    496
    Rolf Welskes
    Oct 5, 2006
  3. flamesrock
    Replies:
    8
    Views:
    818
    Hendrik van Rooyen
    Nov 24, 2006
  4. Nathan Sokalski

    Using CustomControls in UserControls

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

    Styles and CustomControls

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

    Using Design-Time Attributes with CustomControls

    Nathan Sokalski, Jan 3, 2008, in forum: ASP .Net Building Controls
    Replies:
    0
    Views:
    870
    Nathan Sokalski
    Jan 3, 2008
  7. Nathan Sokalski

    Using CustomControls in UserControls

    Nathan Sokalski, Feb 27, 2008, in forum: ASP .Net Building Controls
    Replies:
    0
    Views:
    825
    Nathan Sokalski
    Feb 27, 2008
  8. a
    Replies:
    1
    Views:
    340
    Teemu Keiski
    Nov 12, 2003
Loading...