PrepAway - Latest Free Exam Questions & Answers

You need to design a solution for programmatically adding reusable user-interface code to views and allowing t

You need to design a solution for programmatically adding reusable user-interface code to views and allowing
the user-interface code to be rendered from the server side. Which approach should you recommend.

PrepAway - Latest Free Exam Questions & Answers

A.
Create a jQuery library plug-in.

B.
Create an HtmlHelper extension method.

C.
Create a controller that returns an ActionResult.
D. Create a WebForm server control that stores values in ViewState.

Explanation:
HtmlHelpers provide an easy way to add HTML controls to MVC views. You can create custom HtmlHelper
extensions for HTML elements that are not provided with the builtin HtmlHelpers.
Use HtmlHelper extensions to add custom HTML elements to MVC views.


Leave a Reply