G
Guest
Hello,
I have a javascript function for a validation in the HTML page of the
asp.Net page..
I call this function in a Savebutton click
When the validation fails No postback should happen ( ie Save should not
happen)
the js function is as
function IsValidAmount()
{
if (condition valid)
{return true; }
else
{return false;}
}
I had called the function in the html code as
onclick="IsValidAmount();"
but how should I get the return value here so that I can prevent the posback.
I guess it can be done somehow if I could call the script in the code
behind....
Any idea will be highly appreciated..
cheers,
siaj
I have a javascript function for a validation in the HTML page of the
asp.Net page..
I call this function in a Savebutton click
When the validation fails No postback should happen ( ie Save should not
happen)
the js function is as
function IsValidAmount()
{
if (condition valid)
{return true; }
else
{return false;}
}
I had called the function in the html code as
onclick="IsValidAmount();"
but how should I get the return value here so that I can prevent the posback.
I guess it can be done somehow if I could call the script in the code
behind....
Any idea will be highly appreciated..
cheers,
siaj