PagesSection.UserControlBaseType Property
.NET Framework (current version)
Gets or sets a value that specifies a code-behind class that user controls inherit by default.
Assembly: System.Web (in System.Web.dll)
[ConfigurationPropertyAttribute("userControlBaseType", DefaultValue = "System.Web.UI.UserControl")] public string UserControlBaseType { get; set; }
Property Value
Type: System.StringA 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";
.NET Framework
Available since 2.0
Available since 2.0
Show: