[RESOLVED] client side validators
Given an ASPX page with a textbox, a requiredfieldvalidator, and 2 buttons.
If I want to only have the requiredfieldvalidator validate that data is in the textbox if button1 is clicked but not button2, is my only option to set EnableClientScript to false and do validation on the postback?
Or have they implemented a way where you can still do the client side validation, but specify for it to only occur if button1 is clicked and not button2?
Re: client side validators
Hey,
You can set the CausesValidation property of the other TextBox:
http://msdn.microsoft.com/en-us/libr...alidation.aspx
Gary
Re: client side validators
Re: client side validators
Yes, that is exactly what I meant :thumb:
Sorry, wasn't concentrating :)
Re: client side validators
Looks to be what I was after. Thanks.
This was always such a headache in ASP.NET 1.1
Re: [RESOLVED] client side validators
I never really had the privilege of doing ASP.Net 1.1, I jumped straight into .Net 2.0, but I have heard that there were a number of things, like this, that were just hideous in the earlier version.
Gary