2.3.1 Question
Multiple Choice
You are creating an ASP.NET MVC web application. Within the application, you have created a partial view for contact email and phone number. Which code segment should you use to display the partial view on the main page?
-
A. <div class="float-right">
<section id="contact"></div>@Html.ActionLink("ContactPartial")</section> -
B. <div class="float-right">
<section id="contact"></div>@Html.Partial("ContactPartial")</section> -
C. <div class="float-right">
<section id="contact"></div>@RenderPage("ContactPartial")</section> -
D. <div class="float-right">
<section id="contact"></div>@RenderBody("ContactPartial")</section>