IWebEditable.WebBrowsableObject Property
Assembly: System.Web (in system.web.dll)
The WebBrowsableObject property provides a way for EditorPart controls to get a reference to the server controls they are associated with.
Although the property itself is read-only, the object reference that it returns enables EditorPart controls to change values in the server control.
Notes to Implementers: Normally, when you implement the WebBrowsableObject property in a server control, you simply return a reference to the server control itself. In the case of the GenericWebPart class, because it wraps a child control to enable it to function as a WebPart control, its implementation of the WebBrowsableObject property returns a reference to the child control.The following code example demonstrates how the WebBrowsableObject property can be overridden in a custom WebPart control. The complete source code required to run the example is found in the Example section of the IWebEditable class overview topic.
The code example overrides both members of the IWebEditable interface.
Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.