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
How many web config files can be created for an application?
Take a Large textbox allow to type any data. Task 1:display the count of vowels in a lable on key press event of the textbox Task 2:dispaly count of dates in a lable when dates in following foramats:dd/mm/yy , mm/dd/yy , yy/mm/dd. Task3:compare 2 dates and display both are same or not which dates are in dd/mm/yy and mm/dd/yy farmats.
What are web server controls in asp.net?
What is a session in asp.net?
How can we create custom controls in asp net?
What do you understand by aggregate dependency?
Can we have multiple web config files for an asp.net application?
How to use a Master Database in Asp.net?
How many web.config files can I have in an application?
How to fetch a data from one table to another table in asp.net ?
Which object encapsulates state or data of a user?
Is asp.net a language?
What is %20 in a url?
Which protocol is used in a web api?
How is mvc different from asp.net? : Asp.Net MVC