Should validation (did the user enter a real date) occur
server-side or client-side? Why?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
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 |
Where web.config file is used?
Explain how does asp page work?
RequiredFieldValidator--write code in javascript
Authentication and Authorization
What is wrong with a line like this? DateTime.Parse(myString)
Does the following statement executes successfully: Response.Write(?value of i = ? + i);
is it possible to access website from a remote place, without deploying it on web server?
Can the validation occurs in server-side or client-side? If the validation occurs why should we do?
What is the difference between system.stringbuilder and system.string
What is the adavantage of using ASP.NET routing?
What is difference between web api and web services?
Name the namespace which is used by ado.net?