What is the base class of master page & User Control in asp.net c#?
A:
System.Web.UI.MasterPage for MasterPages and System.Web.UI.UserControl for User Controls.
Please let me know if that doesn't answer you question...
Khanzor
2009-09-21 07:19:50
A:
MasterPage inherits from System.Web.UI.UserControl.
UserControl inherits from System.Web.UI.TemplateControl.
patmortech
2009-09-21 07:20:16
+1
A:
The inheritance tree of a MasterPage is:
System.Object
System.Web.UI.Control
System.Web.UI.TemplateControl
System.Web.UI.UserControl
System.Web.UI.MasterPage
(taken from MasterPage class)
From that you can see what's confirmed on UserControl class, that UserControl also inherits from TemplateControl, then Control and finally Object.
Zhaph - Ben Duguid
2009-09-21 08:25:28