Microsoft Exam Questions

Which method should you override in the Web control?

You need to create a Web control that displays HTML content during the last stage of the page processing lifecycle.

Which method should you override in the Web control?

A.
LoadControlState

B.
Render

C.
SaveViewState

D.
SetDesignModeState

Explanation:
MNEMONIC RULE: “Render”

Render
This is not an event; instead, at this stage of processing, the Page object calls this method on each control. All ASP.NET Web server controls have a Render method that writes out the control’s markup to send to the browser.

If you create a custom control, you typically override this method to output the control’s markup.

ASP.NET Page Life Cycle Overview
http://msdn.microsoft.com/en-us/library/ms178472.aspx