> <BUTTON onserverclick="btnSave_Click" onclick="javascript:return
ClientValidate()"></BUTTON>
function ClientValidate()
if(result is correct)
{
return true;
}
else
{
return false;
}
get it? if you return true, the server side validation should fire, if you
return false, the server side event shouldn't fire.
----Original Message Follows----
From: "sundar srinivasan" <ssrinivasan3@n...>
Reply-To: "ASPX_Professional" <aspx_professional@p...>
To: "ASPX_Professional" <aspx_professional@p...>
Subject: [aspx_professional] stopping server side validation
Date: Tue, 18 Feb 2003 20:19:11
I have the following tag:
<BUTTON onserverclick="btnSave_Click" onclick="javascript:ClientValidate
()"></BUTTON>
The Clientside script fires correctly. How do I stop the server-side
validation from executing if I find an error in the client script?
Sundar
---
Change your mail options at http://p2p.wrox.com/manager.asp or
to unsubscribe send a blank email to
_________________________________________________________________
The new MSN 8: smart spam protection and 2 months FREE*
http://join.msn.com/?page=features/junkmail
Perfecto!!!