exam questions

Exam 98-361 All Questions

View all questions & answers for the 98-361 exam

Exam 98-361 topic 1 question 114 discussion

Actual exam question from Microsoft's 98-361
Question #: 114
Topic #: 1
[All 98-361 Questions]

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
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️
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, its important not to forget that JavaScript can be disabled in any browser, so client-side validation cannot be relied uponwe must always validate any submitted data on the server.

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
sniqq1
1 year, 4 months ago
i think B
upvoted 1 times
vinx909
7 months, 2 weeks ago
it's very simple to get around client-side validation so serverside you have to also make sure you don't get bad or even harmful input.
upvoted 1 times
...
kowalfms99
1 year, 4 months ago
You have to validate values on client site and on server site
upvoted 4 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago