|
Subject:
|
Validation for 2 different buttons
|
|
Posted By:
|
koneruvijay
|
Post Date:
|
1/24/2004 7:25:56 AM
|
Hello Folks,
In my webpage i am having 2 buttons and i have set validation for 2 button but different validations then is there any direct method to cause only specific validation for 1 button or do i have to disable that validation when i press the other button?
|
|
Reply By:
|
nikunjn
|
Reply Date:
|
1/28/2004 2:51:10 AM
|
i also faced the similar problem but could not find any direct method. so instead of that disable the validation of one button using causesValidation=false. so one button click would validate certain fields. for the other button click use a javascript function and call this function on 'onClick' of button. But if u find any direct method do let me know.
|
|
Reply By:
|
Imar
|
Reply Date:
|
1/28/2004 3:34:15 AM
|
Hi there,
Indeed there is no direct method. However, with some JavaScript code it is possible. Check out this thread where I have explained the general idea:
http://p2p.wrox.com/topic.asp?TOPIC_ID=4692
Cheers,
Imar
--------------------------------------- Imar Spaanjaars Everyone is unique, except for me.
|