Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Default ImageUrl in Sub-Classed ImageButton?
Message
De
01/10/2004 14:29:03
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Default ImageUrl in Sub-Classed ImageButton?
Divers
Thread ID:
00948043
Message ID:
00948043
Vues:
44
Bonnie,

I’m addressing this to you because you have answered other messages related to sub classing web controls. I have a class derived from an imagebutton and want it to have a default imageUrl value that would appear in the designer property panel. My problem is I can‘t get the default value to work or appear in the property panel. Following is the code I am using.
Imports System.ComponentModel
Imports System.web.UI.WebControls
Imports System.Web
Imports System.Web.ui
Imports System.Drawing
Imports System.Drawing.Design

<ToolboxBitmap(GetType(ImageButton)), _
   DefaultProperty("ImageUrl"), _
   DefaultValue("images/BlueBulb.gif"), _
   ToolboxData("<{0}:BlueLightBulb runat=server Text=BlueLightBulb></{0}:BlueLightBulb>")> _
Public Class BlueLightBulb
    Inherits LightBulb

End Class
Do you see why it doesn’t work?

Anyone can chime in.

Regards,
Terry Carroll
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform