What Namespace does the Web page belong in the .NET Framework class hierarchy?
-
System.Web.UI.Page
-
System.Windows.UI.Page
-
System.Web.Page
-
System.Windows.Page
In ASP.NET, all .aspx pages inherit from the Page class located in the System.Web.UI namespace. The full namespace path is System.Web.UI.Page, which provides the base functionality for web pages including lifecycle events, request/response handling, and control management.
In ASP.NET's class hierarchy, a Web Forms page inherits from System.Web.UI.Page — the UI namespace groups classes for building the page/control rendering pipeline (Page, Control, etc.), while System.Web itself holds core HTTP-related classes (HttpContext, HttpRequest). "System.Windows.UI.Page" and "System.Windows.Page" belong to WPF/XAML's namespace tree, not ASP.NET Web Forms, and "System.Web.Page" omits the required ".UI" segment, which doesn't exist in the actual .NET Framework namespace hierarchy. System.Web.UI.Page is the real, documented base class.