Hello, hopefully this is a simple question.. I have the following statemen
<asp:Button ID="cmdPPIPDelete" Text="Delete" Runat="server" CssClass="buttonDelete" CommandName="Delete" OnClick="return confirm('Please Confirm You Want To Delete Record')"></asp:Button
Each time I navigate to this page, I get a compile error of "CS1041 Identifier expected, return is a keyword"
Iif I take out the javascript, then I have no errors when I navigate to this page. So I am pretty confident that it is the Javascript causing the problem. I am wanting to bring up a dialoage box when the user presses the button to confirm the delete
I also tried the following
<script language="javascript"
function RecordDeleteConfirmation()
confirm("Do you want to permanently delete this record"
</script><asp:Button ID="cmdPPIPDelete" Text="Delete" Runat="server" CssClass="buttonDelete" CommandName="Delete" OnClick='javascript: RecordDeleteConfirmation()'></asp:Button
It gives me a compile error looking for ")"
What am I doing wrong