Which markup segments should you include in Target 1, T…

DRAG DROP
You are developing an ASP.NET MVC web application.
You need to create a form that can be used to add new products to the web application.
You have the following markup:

Which markup segments should you include in Target 1, Target 2, Target 3 and Target 4 to complete the
markup? To answer, drag the appropriate markup segments to the correct targets. Each markup segment may
be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view
content.
Select and Place:

DRAG DROP
You are developing an ASP.NET MVC web application.
You need to create a form that can be used to add new products to the web application.
You have the following markup:

Which markup segments should you include in Target 1, Target 2, Target 3 and Target 4 to complete the
markup? To answer, drag the appropriate markup segments to the correct targets. Each markup segment may
be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view
content.
Select and Place:

Answer:

Explanation:
Target 1: <form action=”/Products/Create” method=”post”>
The form methods are post and get (not submit).
Target 2: <td>@Html.Textbox(@Model.ProductName)</td>
The InputExtensions.TextBox method returns a text input element. The TextBox method is designed to make it
easy to bind to view data or model data.
Target3: <td>@Html.Textbox(@Model.UnitPrice)</td>
The InputExtensions.TextBox method returns a text input element. The TextBox method is designed to make it
easy to bind to view data or model data.Target 4: <input type=”submit” value=”Save”/>
The submit attribute, of input type, declares a submit button.
The input type attribute does not have a post attribute.

https://weblogs.asp.net/scottgu/asp-net-mvc-preview-5-and-form-posting-scenarios
https://msdn.microsoft.com/en-us/library/system.web.mvc.html.inputextensions.textbox(v=vs.118).aspx



Leave a Reply 1

Your email address will not be published. Required fields are marked *


EYAuditor

EYAuditor

correct