Wednesday, March 21, 2012

permitting linkbutton no validation but other linkbutton validation required

I have a user control with requiredfieldvalidation on 3 textboxes and a validationsummary .

I have 2 linkbuttons.
1st linkbutton (Get) gets values from a database and puts these values into the 3 textboxes.
2nd linkbutton (set) takes the values from the 3 textboxes and puts these values into the database.

The problem is that when I click the Get linkbutton it brings up validation and says required field is empty.
I need it where validation is only on one button and not the other.

can anyone help

Tim CAdd
CausesValidation=False

to any linkbutton that you don't want to trigger validation.

Steve
thank you but I found a different solution. What I did is something like this.

 require1.Enabled = False

where require1 is a validator

0 comments:

Post a Comment