• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 880
  • Last Modified:

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 &quot when I try using quotes.

Does someone know how to do this?


Thanks,
0
ScottMacMaster
Asked:
ScottMacMaster
1 Solution
 
ScottMacMasterAuthor Commented:
Oh, nevermind.  I didn't realize the text in name had a newline character in it.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now