Posted by: Pdfprep
Post Date: December 15, 2020
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
Leave a Reply