Properties not showing in Property Window

D

daokfella

I have a custom control. When I set a property using the property
window, the property is added to my tag as such:

<cc1:mycontrol id="id" runat="server" Property1="asdf"
Property2="asdf"></cc1:mycontrol>

When I close the page and open it again in the designer, the
properties are blank in the property window, but the tag is intact.
When I run the page, the properties are still correctly set, just not
shown on the property window in design view. What am I missing?

My properties are pretty basic:

<Bindable(true), Category("Appearance"), DefaultValue(""),
PersistenceMode(PersistenceMode.Attribute), _
Localizable(True), Editor(GetType(Design.ImageUrlEditor),
GetType(Design.UITypeEditor))> _
Public Property ImageUrl As String
Get
Me.EnsureChildControls()
Return MyChildImageControl.ImageUrl
End Get
Set(ByVal value As String)
Me.EnsureChildControls()
MyChildImageControl.ImageUrl = value
End Set
End Property
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top