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

After capturing the SelectIndexChanged event for a ListBox Control, you find that the event handler doesn?t execute. What could be the problem be? a) The AutoEventWireup attribute is set to False b) The AutomaticPostBack attribute is set to False c) The codebehind module is not properly compiled d) The ListBox must be defined WithEvents.

2 Answers   Syntax Softtech,


How to disable cut, copy and paste in TextBox using jQuery in asp.net?

0 Answers   HCL,


Explain what a diffgram is, and a good use for one?

1 Answers  


what is synchronization and asynchronization. what are the difference between two?

1 Answers   TCS,


Is data edited in the Repeater control?

0 Answers   Siebel,






Can I have a unique key as foreign key?

0 Answers  


What is meant by asp.net?

0 Answers  


Define static constructor?

0 Answers  


What is difference between session and application in asp net?

0 Answers  


Features of a dataset ?

3 Answers   Accenture,


What are runtime hosts?

2 Answers   Microsoft,


How can I have a particular web page in an asp.net application which displays its own error page?

0 Answers  


Categories