Author: aikeith | Posted on: 8/8/2003 6:55:32 AM | Views : 376

If I have a button, how do i suppress postback based on the JavaScript -- like the Page Validators do -- ie: they dont post the page unless there are no javascript erros:





ie:








<asp:button id="button1" runat="server" OnClick="DoThis();" />





<Script Language="JavaScript">





function DoThis(){





if (confirm("Do you want me to Post Back?")==true){


// ok do the post back and whatever!!!


}





}





</Script> ...

Go to the complete details ...