Problem with args.isValid in JS
-
Hi, i am not able set the args.isValid as false for JS function...which is not having custom validator.. find the code below:
<asp:LinkButton runat="server" ID="btnApply" TabIndex="1" CssClass=" primary" OnClientClick = "return ApplyClick(this);" >
JS Code:
function Applyclick(args) {
if (errMsg != null) {
args.IsValid = false;}
return false;
}thanks in advance
-
Hi, i am not able set the args.isValid as false for JS function...which is not having custom validator.. find the code below:
<asp:LinkButton runat="server" ID="btnApply" TabIndex="1" CssClass=" primary" OnClientClick = "return ApplyClick(this);" >
JS Code:
function Applyclick(args) {
if (errMsg != null) {
args.IsValid = false;}
return false;
}thanks in advance
I am sorry I dont know asp.net but yet what is args and who is calling ApplyPromotionClick ???
I know I am coward since the day I know that fortune favors the brave
-
I am sorry I dont know asp.net but yet what is args and who is calling ApplyPromotionClick ???
I know I am coward since the day I know that fortune favors the brave
Sorry function name should be applyclick
-
Sorry function name should be applyclick
In that case Check your Firefox or Chrome error message. I cant recall any html object property IsValid. I think you need to say more clearly what you need
I know I am coward since the day I know that fortune favors the brave