I want to add an onclick="MyFunction();" property to an asp control defined in the following way:
<asp:button id=cmdDelete runat="server" Width="120px" Text="Delete"></asp:button>
I tried
<asp:button id=cmdDelete runat="server" onclick="DeleteConfirm();" Width="120px" Text="Delete"></asp:button>
but that generates an error, as
VB.NET doesn't know how to handle the onclick="" instruction.
How do you add client-side calls to JScript on an ASP.NET web page?