I've been attempting to invoke a C# function from JavaScript using the following method:
[WebMethod]
public static boolean F1()
{
return true;
}
<asp:Button ID="Button1" runat="server" OnClientClick="x(); return false" Text="Button" />
However, no alerts are being displayed when I try to run this. What am I doing wrong?