Multiple choice technology programming languages

What base class do all Web Forms inherit from?

  1. Web class

  2. Page class

  3. Data class

  4. Html classs

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

All ASP.NET Web Forms inherit from the Page class (System.Web.UI.Page), which provides the base functionality for web pages. Options A, C, and D are not valid base classes for Web Forms.

AI explanation

In classic ASP.NET Web Forms, every .aspx page's code-behind class inherits from System.Web.UI.Page (the "Page class"), which provides the page lifecycle events (Init, Load, PreRender, etc.), ViewState, and control tree management that Web Forms rely on. There is no such base class as "Web class," "Data class," or "Html class" in the ASP.NET Web Forms framework — those are distractors.