How to write a control that doesn't require a closing tag

Discussion in 'ASP .Net Web Controls' started by paul.hester@gmail.com, Sep 20, 2006.

  1. Guest

    Hi all,

    I've built a custom control that won't contain any inner content. If I
    derive the control from Control, then the VS editor will always add the
    closing tag when I use the control. I can derive from UserControl and
    it doesn't do this, but I'm not sure whether is the best way to do
    this.

    What is the correct way to make a control that is self-closing (i.e.
    doesn't have a closing tag)?

    Thanks,

    Paul
     
    , Sep 20, 2006
    #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. shruds
    Replies:
    1
    Views:
    961
    John C. Bollinger
    Jan 27, 2006
  2. Paul
    Replies:
    4
    Views:
    386
  3. Aniais
    Replies:
    5
    Views:
    619
    Joe (GKF)
    Dec 17, 2006
  4. Replies:
    5
    Views:
    141
    John Saunders
    Sep 22, 2006
  5. jwcarlton

    Removing tag + closing tag

    jwcarlton, Sep 21, 2010, in forum: Perl Misc
    Replies:
    12
    Views:
    188
Loading...

Share This Page