Microsoft
70-515 · Question #88
70-515 Question #88: Real Exam Question with Answer & Explanation
Sign in or unlock 70-515 to reveal the answer and full explanation for question #88. The question stem and answer options stay visible for context.
Question
You are developing an ASP.NET MVC 2 application. A view contains a form that allows users to submit their first name. You need to display the value that is submitted, and you must ensure that your code avoids cross-site scripting. Which code segment should you use?
Options
- A<%: Model.FirstName %>
- B<%= Model.FirstName %>
- C<% Response.Write(Model.FirstName) %>
- D<% Response.Write(HttpUtility.HtmlDecode(Model.FirstName)) %>
Unlock 70-515 to see the answer
You've previewed enough free 70-515 questions. Unlock 70-515 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.