|
-
Nov 18th, 2010, 10:53 AM
#1
[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?
-
Nov 18th, 2010, 11:02 AM
#2
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
-
Nov 18th, 2010, 11:03 AM
#3
Re: client side validators
-
Nov 18th, 2010, 11:09 AM
#4
Re: client side validators
Yes, that is exactly what I meant 
Sorry, wasn't concentrating
-
Nov 18th, 2010, 11:12 AM
#5
Re: client side validators
Looks to be what I was after. Thanks.
This was always such a headache in ASP.NET 1.1
-
Nov 18th, 2010, 11:23 AM
#6
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|