ScottMacMaster
asked on
Quote Mark In OnClientClick Message
I want to have quotes in some text displayed to the user when they click a botton but I can't get it to work. This is my lastest attempt,
cmdDelete.OnClientClick = "return confirm('Are you sure you want to delete \'" + name + "\'?');"
I've tried quotes, double quotes, double single quotes, and other things but I keep getting javascript error when I run the page. Also, something converts " to " when I try using quotes.
Does someone know how to do this?
Thanks,
cmdDelete.OnClientClick = "return confirm('Are you sure you want to delete \'" + name + "\'?');"
I've tried quotes, double quotes, double single quotes, and other things but I keep getting javascript error when I run the page. Also, something converts " to " when I try using quotes.
Does someone know how to do this?
Thanks,
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.