What is the correct syntax of this snippet:
<asp:Button OnClick="foo" runat="server" ID="foo"
OnClientClick="return confirm("'<%= GetLocalResourceObject("fooRessource") %>'");" />
i'm stuck with the ' and " at OnClientClick
What is the correct syntax of this snippet:
<asp:Button OnClick="foo" runat="server" ID="foo"
OnClientClick="return confirm("'<%= GetLocalResourceObject("fooRessource") %>'");" />
i'm stuck with the ' and " at OnClientClick
could you not do this?
<asp:Button OnClick="foo" runat="server" ID="foo"
OnClientClick="return myconfirm()");" />
<script>
function myconfirm()
{
return confirm("<%= GetLocalResourceObject("fooRessource") %>");
}
</script>
confirm as that will get confusing with window.confirm... you'd end up with recursionfunction myconfirm() { return confirm("<%= GetLocalResourceObject("fooRessource") %>"); }