re:
!So you should have no problem at all providing a URL from MSDN2 that
!definitively and without question documents the typed Master as a User Control.
clintonG :
Here's 3 URLs which list MasterPage Properties, Members and Methods :
http://msdn.microsoft.com/en-us/libr...roperties.aspx http://msdn.microsoft.com/en-us/libr...e_members.aspx http://msdn.microsoft.com/en-us/libr...e_methods.aspx
Notice that every single Property, Member and Method used/owned by
a MasterPage inherits from either Control, UserControl or TemplateControl.
Since the UserControl, Page and MasterPage classes all are subclasses of System.Web.UI.
See :
http://quickstarts.asp.net/QuickStar...=System.Web.UI
When an HTTP request is made for a page at run time, the master page and content
pages are combined into a single class with the same name as the content pages.
The *resulting* compiled, merged class derives from the Page class.
The MasterPage class derives (inherits, actually) from Control,
and is last in a chain which includes Control, TemplateControl and UserControl:
Here's the inheritance hierarchy for the MasterPage class :
System..::.Object
System.Web.UI..::.Control
System.Web.UI..::.TemplateControl
System.Web.UI..::.UserControl
System.Web.UI..::.MasterPage
The master page is initialized as the top control in a page's control hierarchy by
clearing the page's Controls array and adding the master page to the Control collection.
MasterPage inherits from UserControl...so it's a form of UserControl.
If it looks like a duck and quacks like a duck and inherits from a duck...it's a duck.
Juan T. Llibre, asp.net MVP
asp.net faq :
http://asp.net.do/faq/
foros de asp.net, en español :
http://asp.net.do/foros/
======================================
"clintonG" <no****@nowhere.comwrote in message news:eE**************@TK2MSFTNGP04.phx.gbl...
So you should have no problem at all providing a URL from MSDN2 that definitively and without question documents the
typed Master as a User Control.
<%= Clinton Gallagher
"Mark Rae [MVP]" <ma**@markNOSPAMrae.netwrote in message news:%2****************@TK2MSFTNGP06.phx.gbl...
>"clintonG" <no****@nowhere.comwrote in message news:%2****************@TK2MSFTNGP04.phx.gbl...
>>Technically speaking, it should also be noted Mark is incorrect because the MasterPage is --not-- a User Control per
se but a unique type which functions similar to a User Control and then only when the page is compiled.
A MasterPage absolutely is a UserControl.
--
Mark Rae
ASP.NET MVP
http://www.markrae.net