什么是母版的基类&用户控件在asp.net c#中?

时间:2009-09-21 07:11:37

标签: asp.net master-pages master

主页的基类是什么?用户控件在asp.net c#?

3 个答案:

答案 0 :(得分:1)

MasterPage的继承树是:

System.Object
 System.Web.UI.Control
  System.Web.UI.TemplateControl
   System.Web.UI.UserControl
    System.Web.UI.MasterPage

(摘自MasterPage class

从那里你可以看到UserControl class上确认了什么,UserControl也继承自TemplateControl,然后是Control,最后是Object。

答案 1 :(得分:0)

MasterPages的System.Web.UI.MasterPage和用户控件的System.Web.UI.UserControl。

如果这不能回答你的问题,请告诉我......

答案 2 :(得分:0)

MasterPage继承自System.Web.UI.UserControl。

UserControl继承自System.Web.UI.TemplateControl。