How do you validate seperate controls in a gridview against each other? I have several controls that I need to compare the values of against each other in my gridview on editing.
Any assistance would be really appreciated.
You can control them by the ControlToValidate property. Just assign it the correct control id.
My point is that you can't set the ControlToValidate property to more than 1 control, so how do I validate 3 different controls against each other?
e.g. Day dropdown, Month dropdown, Year dropdown, and you want to check whether or not the date as a whole is valid
ASP.NET 2.0 has a new feature: validate group.
Check it out:http://www.asp.net/QuickStart/aspnet/doc/validation/default.aspx#validationgroups
How do you get hold of the values of 2+ controls in a CustomValidator etc, where you can only access the value that you specify as the ControlToValidate?
No comments:
Post a Comment