PagesSection.UserControlBaseType Property
.NET Framework 3.0
Gets or sets a value that specifies a code-behind class that user controls inherit by default.
Namespace: System.Web.Configuration
Assembly: System.Web (in system.web.dll)
Assembly: System.Web (in system.web.dll)
/** @property */ public String get_UserControlBaseType () /** @property */ public void set_UserControlBaseType (String value)
public function get UserControlBaseType () : String public function set UserControlBaseType (value : String)
Not applicable.
Property Value
A string that specifies a code-behind file that user controls inherit by default.The following code example shows how to use the UserControlBaseType property.
// Get the current UserControlBaseType property value. Console.WriteLine( "Current UserControlBaseType value: '{0}'", pagesSection.UserControlBaseType); // Set the UserControlBaseType property to // "MyNameSpace.MyCustomControlBaseType". pagesSection.UserControlBaseType = "MyNameSpace.MyCustomControlBaseType";