Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 2005 > C# 2005
|
C# 2005 For discussion of Visual C# 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# 2005 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 15th, 2007, 01:17 PM
Registered User
 
Join Date: Feb 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default escape character for double quotes

I have code as
node.InnerText = "(" + completeNames + ")";

the o/p is shown as (XYZ)

How do I change the syntax so that the o/p is shown as
("XYZ")

TIA,
Andy


 
Old March 15th, 2007, 01:54 PM
Friend of Wrox
 
Join Date: Dec 2006
Posts: 176
Thanks: 0
Thanked 0 Times in 0 Posts
Default

try this code and enjoy it
node.InnerText = "(\"" + completeNames + "\")";
:D

kiani,mahdi
 
Old March 15th, 2007, 02:56 PM
Registered User
 
Join Date: Feb 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks but I get the o/p as (\"XYZ\")

 
Old March 15th, 2007, 10:51 PM
Friend of Wrox
 
Join Date: Dec 2006
Posts: 176
Thanks: 0
Thanked 0 Times in 0 Posts
Default

no
this work well
i write these codes in my computer

String completeName ="kiani.mahdi";
MessageBox.Show("(\"" + completeName + "\")");

my MessageBox shown this text ("kiani.mahdi")


may be you write code mistake

try again





Similar Threads
Thread Thread Starter Forum Replies Last Post
escape double quote inside JavaScript mister_mister XSLT 5 January 23rd, 2008 01:56 PM
double quotes MyronCope Classic ASP Basics 2 November 21st, 2006 09:31 AM
displaying single quotes and double quotes ren_123 Classic ASP Databases 2 February 22nd, 2006 02:17 PM
Double Quotes langer123 Classic ASP Basics 2 March 16th, 2005 06:22 PM
Double Quotes and Single Quotes Problem phungleon Classic ASP Basics 7 May 27th, 2004 01:44 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.