I was a bit down yesterday as India lost against Sri Lanka and are almost out of the world cup. But on putting the defeat in proper perspective, I realised that the Indian team is a bad team and bad teams are supposed to lose. It is immature to get emotional when a bad team loses. Now that India will not be playing any more, I can relax and just enjoy the game of cricket. That is what I'm doing right now. I'm watching South Africa chase Australia's mammoth total of 377 with great ease.
ASP.net built in validation does not provide us a straight forward to clear all the validation errors. This would be really helpful while resetting a form. The reset html button would simply reset the form values but will not clear the validation errors. The following javascript code snippet can be used to clear the validation error messages. Have a reset button on your form and call the following js function onclick. <input type="reset" onclick="HideValidationErrors();" /> function HideValidationErrors() { //Hide all validation errors if (window.Page_Validators) for (var vI = 0; vI < Page_Validators.length; vI++) { var vValidator = Page_Validators[vI]; vValidator.isvalid = true; ValidatorUpdateDisplay(vValidator); } //Hide all validaiton summaries if (typeof (Page_ValidationSummaries) != "undefined") { //hide the validation summaries ...
Comments