Problems to add a custom web control

Discussion in 'ASP .Net Web Controls' started by Erik Cruz, Aug 7, 2003.

  1. Erik Cruz

    Erik Cruz Guest

    Hi.

    I have a library with four controls. For each one I set the toolbox
    attribute like that:
    <ToolboxData("<{0}:controlname runat='server'></{0}:controlname>")>

    All of them works as expected except for the class that inherits from an
    imagebutton. For that, if I define the toolbox attribute, when I drag the
    control to a form the html is written this way:
    <cc1:popimage runat='server'></cc1:popimage></cc1:popimage>

    Notice that the html includes the closing tag twice, but this behaviour does
    not occurs for the other controls that inherits from linkbutton, hyperlink
    and button. What am I doing wrong?

    TIA,
    Erik Cruz
     
    Erik Cruz, Aug 7, 2003
    #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. =?Utf-8?B?V2FubmFiZV9HZWVr?=

    Custom Control Add Control Dynamically.

    =?Utf-8?B?V2FubmFiZV9HZWVr?=, Jun 30, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    414
    John Saunders
    Jun 30, 2004
  2. Chad Scharf
    Replies:
    3
    Views:
    945
    Chad Scharf
    Oct 18, 2007
  3. Brian Cryer
    Replies:
    2
    Views:
    593
    Brian Cryer
    Apr 2, 2008
  4. Matt Sokol
    Replies:
    2
    Views:
    431
    Theo Tillotson
    Aug 7, 2003
  5. Leyla

    Web user control - custom web control - java script.

    Leyla, May 1, 2006, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    135
    Leyla
    May 1, 2006
Loading...

Share This Page