Consider the following scenario. You have a Microsoft ASP.NET 2.0-based application. You try
to use properties of an ASP.NET server control that is located in a
WebPartZone control. You use any one of the
System.Web.UI.Webcontrols.WebParts.IWebPart properties on the ASP.NET server
control. In this scenario, you receive the following run-time error message:
Type ControlName does
not have a public property named PropertyName.
You may experience this issue when one of the following conditions is true:
- You try to access the properties that are programmatically exposed by the IWebPart interface.
- You declare the properties on the control when the control is in a WebPartZone control.