Validate data for a SQL Server stored procedure
I am used to using the validate object in ASP .Net to check the users input before I would execute the sp to insert the data into the DB.
How does one go about using a validate object in a win application?
I am using:
- VS C# 2008 express
- MS SQL express that comes with the above.
I search the questions by other user and most of them deal with validation on the back-end.
I would like the user to see that the inputed data is wrong if it is!
Thanks in advanc开发者_开发技巧e.
Try looking at the ErrorProvider class. This works in a similar manner to ASP.NET validators.
精彩评论