Hello, hopefully this is a simple question.. I have the following statemen
<asp:Button ID="cmdPPIPDele te" Text="Delete" Runat="server" CssClass="butto nDelete" CommandName="De lete" 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="javas cript"
function RecordDeleteCon firmation()
confirm("Do you want to permanently delete this record"
</script><asp:But ton ID="cmdPPIPDele te" Text="Delete" Runat="server" CssClass="butto nDelete" CommandName="De lete" OnClick='Javasc ript: RecordDeleteCon firmation()'></asp:Button
It gives me a compile error looking for ")"
What am I doing wrong