Thursday, October 2, 2008

User control properties do not show up on IDE property window

Issue

When you place a user control (.ascx) on a page, public properties of the user control do not appear on the IDE's property window.

Solution

In order for the properties to show in property window, it must be a public property and also have definition for both get and set accessors.

If the above conditions are met and still the property is not accessible by property window, just close and reopen the page on which you placed the user control.

No comments: