What required field validation?

So, I have several forms made in asp.net/c# that I need to validate. If one of the validators fails, Id would like to change the class for the textbox and the client side / send back label. The path identifier usually does this manually by validating the client and server form sides. Is there a way to do this with validators instead of a bunch of if statements?

0


a source to share


3 answers


You can use the standard asp.net client side validators which could potentially give you text next to a field or in a validation summary. There are some third party plugins that you might be able to use, this will take it a step further in terms of custom CSS styling, etc.

Take a look at these alternatives to .NET validators:



+1


a source


Generally speaking, this is exactly what validators are for. But client-side validation might not just change the class of the field (presumably to change its color). How important is this way of indicating a validation problem?



0


a source


The Required Validation Field ID is what you want.

0


a source







All Articles