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 upon. How should we validate any submitted data?
1)in both the client-side code and the server-side code
2)only in the client-side code
3)only in the server-side code
4)validation is not necessary