views:

164

answers:

3

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
A: 

MasterPage inherits from System.Web.UI.UserControl.

UserControl inherits from System.Web.UI.TemplateControl.

patmortech
+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