nerdexam
Microsoft

70-515 · Question #178

70-515 Question #178: Real Exam Question with Answer & Explanation

Sign in or unlock 70-515 to reveal the answer and full explanation for question #178. The question stem and answer options stay visible for context.

Question

You are developing an ASP.NET MVC2 view and controller. The application includes a class names Employee that has a LastName property. The controller requires an action method that will insert an Employee instance into a database. You need to ensure that the data that is submitted is an Employee instance and that a LastName value is given. What should you do?

Options

  • AAdd a ValidationMessage helper method immediately after the view's last name TextBox.
  • BAdd the Required attribute to the LastName property.
  • CAdd the Required attribute to the LastName property.
  • DAdd the ValidationMessage helper method immediately after the views last name TextBox.

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.

Full 70-515 Practice