nerdexam
Microsoft

98-361 · Question #114

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 A. 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…

Understanding Web Applications

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 both the client-side code and the server-side code
  • Bin the client-side code only
  • Cin the Web.config file
  • Din the server-side code only

How the community answered

(63 responses)
  • A
    75% (47)
  • B
    6% (4)
  • C
    3% (2)
  • D
    16% (10)

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

#form validation#client-side validation#server-side validation#cross-browser compatibility

Community Discussion

No community discussion yet for this question.

Full 98-361 Practice