disable client side script

Posted by Saranya Boopathi under ASP.NET on 6/11/2013 | Points: 10 | Views : 1100 | Status : [Member] | Replies : 3
How to disable client side script in validators?

Saranya Boopathi


Responses

Posted by: Satyapriyanayak on: 6/11/2013 [Member] [MVP] Silver | Points: 25

Up
0
Down
EnableClientScript="False"

If this post helps you mark it as answer
Thanks

Saranya Boopathi, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Satyapriyanayak on: 6/11/2013 [Member] [MVP] Silver | Points: 25

Up
0
Down
EnableClientScript="False"

If this post helps you mark it as answer
Thanks

Saranya Boopathi, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Allemahesh on: 6/14/2013 [Member] [MVP] Silver | Points: 25

Up
0
Down
There are 3 ways you can disable validation:-

1. To disable validation in a specific control:-
- Set the control's CausesValidation property to false.
- CausesValidation="False"
- E.g.:-
<asp:Button id="Button1" runat="server" Text="Cancel" CausesValidation="False"></asp:Button>

2. To disable a validation control:-
- Set the validation control's Enabled property to false.

3. To disable client-side validation:-
- Set the validation control's EnableClientScript property to false.

Hope this will help you.

Saranya Boopathi, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response