开发者

Validate data for a SQL Server stored procedure

开发者 https://www.devze.com 2023-02-01 09:51 出处:网络
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.

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号