Should validation (did the user enter a real date) occur
server-side or client-side? Why?

Answer Posted / surendra singh

It should occur both at client-side and Server side.By using expression validator control with the specified expression ie.. the regular expression provides the facility of only validatating the date specified is in the correct format or not. But for checking the date where it is the real data or not should be done at the server side, by getting the system date ranges and checking the date whether it is in between that range or not.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can you pass multiple complex types in Web API?

778


Why Unload event of MasterPage Calls first in ASP.net ?

793


What is the difference between cache and cookies?

731


How can we update records in gridview?Is there any appropriate code for it?

1848


Explain how can we access static variable?

824


How would you turn off cookies on one page of your website?

736


What is GAC in ASP.NET 2.0

821


Explain login controls.

827


A Web Service Can Only Be Written In .net. Is it True??

831


Is it possible to change the index of primary key on table?

645


What is the use of execute non query in asp.net?

704


What is Web Server Control Templates.?

804


Describe how to implement globalization and localization in the use interface in .net.

771


What is the asp.net mvc folder conventions? : asp.net mvc

656


What is OSI layer? Explain different layers.

803