Solved

Quote Mark In OnClientClick Message

Posted on 2010-09-10
1
812 Views
Last Modified: 2012-05-10
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
Comment
Question by:ScottMacMaster
1 Comment
 

Accepted Solution

by:
ScottMacMaster earned 0 total points
Comment Utility
Oh, nevermind.  I didn't realize the text in name had a newline character in it.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now