VB.Net Form Level Validation
Posted on 2004-11-22
I want to validate all the controls (validating event of the controls) in a button click. Like as we have in ASP.NET (Validation Summary).
For Example, in an Employee Master, EmpID, EmpName, Designation, DateofJoin must not be empty. This can be done using Validating Event for the individual controls. But the User may fill only EmpName and Click the SAVE button. At this stage, all the controls have to validated by manual coding like EmpName<>"", Designation<>"".
Instead of this manual coding, I want to have an existing method or a generalized function to run the Validating Event of the controls in a form.
This facility is available in ASP.Net by using Validation Summary Control. How can be the same obtained in VB.Net?
Hope all of you understand my requirement.
Thanks in advance.