98-361 · Question #264
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…
The correct answer is D. in both the client-side code and the server-side code. 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…
Question
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?
Options
- Ain the Web.config file
- Bin the server-side code only
- Cin the client-side code only
- Din both the client-side code and the server-side code
How the community answered
(25 responses)- A8% (2)
- B4% (1)
- C4% (1)
- D84% (21)
Explanation
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.
Topics
Community Discussion
No community discussion yet for this question.