Home » Microsoft » 98-361 » Where should you put the validation control?
You have a website that includes a form for usemame and password.
You need to ensure that users enter their username and password. The validation must work in all browsers.
Where should you put the validation control?
A. in both the client-side code and the server-side code
B. in the client-side code only
C. in the Web.config file
D. in the server-side code only
Correct Answer: A
Explanation/Reference:
From version 2.0 on, ASP.NET recognized the JavaScript capabilities of these browsers, so client-side validation is now available to all modern browsers, including Opera, Firefox, and others. Support is even better now in ASP.NET 4.0. That said, it’s important not to forget that JavaScript can be disabled in any browser, so client-side validation cannot be relied upon"”we must always validate any submitted data on the server.