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 advance.

Answers


Try looking at the ErrorProvider class. This works in a similar manner to ASP.NET validators.


Need Your Help

Halting In Progress CAKeyframeAnimation

iphone cocoa core-animation

I'm animating a UIView's frame property using a CAKeyframeAnimation on the view's CALayer and animating the "position" property. I'd like to be able to halt the animation at it's current state when...

How to get data from 2D array and put into 1D array

matlab matrix indexing

I have a 2D array and I want to create a 1D by MATLAB, satisfying the requirement that each element of the 1D output was created by the value of a given index into the 2D array. Example 2D array is...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.