PagesSection.UserControlBaseType Property

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)

public string UserControlBaseType { get; set; }
/** @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.
    "Current UserControlBaseType value: '{0}'",

// Set the UserControlBaseType property to
// "MyNameSpace.MyCustomControlBaseType".
pagesSection.UserControlBaseType =

Windows 98, Windows Server 2000 SP4, 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.

.NET Framework

Supported in: 3.0, 2.0

Community Additions