Multiple choice technology web technology

What class you inherit for creating a WebPart ?

  1. System.Web.UI.WebControls.WebPart.WebParts

  2. System.Web.UI.WebControls.WebParts.WebParts

  3. System.Web.UI.WebControls.WebParts.WebPart

  4. System.Web.WebControls.WebParts.WebPart

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

To create a custom WebPart in ASP.NET/SharePoint, you inherit from the WebPart base class in the System.Web.UI.WebControls.WebParts namespace. Option A is incorrect because WebParts (plural) is not a valid class name. Option B is also incorrect. Option D has the wrong namespace (System.Web.WebControls instead of System.Web.UI.WebControls.WebParts).