Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Default ImageUrl in Sub-Classed ImageButton?
Message
From
01/10/2004 14:29:03
 
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
Default ImageUrl in Sub-Classed ImageButton?
Miscellaneous
Thread ID:
00948043
Message ID:
00948043
Views:
43
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
Next
Reply
Map
View

Click here to load this message in the networking platform