Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

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)

[ConfigurationPropertyAttribute("userControlBaseType", DefaultValue = "System.Web.UI.UserControl")]
public string UserControlBaseType { get; set; }

Property Value

Type: System.String
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 =

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0
© 2015 Microsoft