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 are httphandlers and httpmodules and difference between them?

1 Answers  


What is session object? Describe in detail.

1 Answers  


How does asp.net page work?

1 Answers  


What is viewstate? What does the "enableviewstate” property do? Whay would I want it on or off?

1 Answers  


AJAX - explain the concept and some controls like update panel, tabcontrol etc

2 Answers   Syntel,


What are the difference between ASP and ASP.Net?

4 Answers   Accenture, Mphasis,


Where sessions are stored in asp.net?

1 Answers  


Does JITting occur per-assembly or per-method? How does this affect the working set?

1 Answers  


What are the advantages of asp.net?

1 Answers  


What is the first name space in .netF/W heirarchy

3 Answers   Wipro,


In my code i have 3 tables,i have to insert 3 tables data using single insert query so that i wrote transations in a sp.but what my problem is,in those 3 tables i have to include my empId from another table.when i'm passing values im getting error at this EmpId. how can i solve this error to execute insert query? plesae tell me the solution...

1 Answers  


What is the size of Get method and how much data it can store?

1 Answers   HCL,


Categories