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

Answers were Sorted based on User's Feedback



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

Answer / ramgopal reddy

Client-side. This reduces an additional request to the
server to validate the users input.

Is This Answer Correct ?    2 Yes 0 No

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

Answer / fusion

Ramgopal is correct upto certain extent.
What if User has his Javascript disabled on browser?
Range Validator could do well there.

Is This Answer Correct ?    1 Yes 1 No

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

Answer / sulochana singh

Client-side validation because there is no need to request a server side date when you could obtain a date from the client machine.

Is This Answer Correct ?    0 Yes 0 No

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

Answer / 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

More ASP.NET Interview Questions

What is the Global.asax used for?

7 Answers   Siebel Systems,


How would ASP and ASP.NET applications run at the same time on the same server?

0 Answers   Satyam,


Is redux flux?

0 Answers  


What is difference in .net 1.1 and .net 2.0?

0 Answers  


How do you do client-side validation in .net? How to disable validator control by client side javascript?

0 Answers  






How does ASP.NET framework maps client side events to Server side events.?

0 Answers  


Differentiate between a hyperlink control and a linkbutton control.

0 Answers  


What is the lifespan for items stored in ViewState?

4 Answers   Siebel Systems,


Can we use multiple forms in single asp.net application?

3 Answers   Polaris,


Why Global.asax is used?

7 Answers   Perot Systems,


where is declare global variable in asp.net and what is use of global variable

3 Answers  


What is viewstate? What does the “enableviewstate” property do?

0 Answers  


Categories