PdfPrep.com

Which line of code should you use to replace line GL21?

You need to display the "miles" unit description after the distance in the GetLog view.

Which line of code should you use to replace line GL21? (Each correct answer presents a complete solution. Choose all that apply.)
A . @log.Distance miles
B . @Htrml.DisplayFor(model => log.Distance) miles
C . @log.Distance.ToString() @Html.TextArea("miles")
D . @Html.DisplayFor(model => log.Distance.ToString() + " miles")

Answer: A,B

Exit mobile version