<asp:Button ID="btnclr" Text="Clear" class="btn" OnClientClick="return clear();" runat="server" onclick="btnclr_Click" />
<asp:button id="btnclr" text="Clear" class="btn" onclientclick="return clear();" runat="server" onclick="btnclr_Click" xmlns:asp="#unknown" />
<head runat="server"> <title></title> <script type="text/javascript" language="javascript"> function Clear() { alert("Testing the code"); return false; } </script> </head> <body> <form id="form1" runat="server"> <div> <asp:Button ID="btnCancel" runat="server" Text="Cancel" OnClientClick="Clear()" OnClick="btnCancel_Click" /> </div> </form> </body> </html>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)