Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > C# and C > C# 2005 > C# 2005
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Display Modes
  #1 (permalink)  
Old March 15th, 2007, 01:17 PM
Registered User
 
Join Date: Feb 2007
Location: , , .
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


  #2 (permalink)  
Old March 15th, 2007, 01:54 PM
Friend of Wrox
 
Join Date: Dec 2006
Location: , , .
Posts: 176
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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

kiani,mahdi
  #3 (permalink)  
Old March 15th, 2007, 02:56 PM
Registered User
 
Join Date: Feb 2007
Location: , , .
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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

  #4 (permalink)  
Old March 15th, 2007, 10:51 PM
Friend of Wrox
 
Join Date: Dec 2006
Location: , , .
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
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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



All times are GMT -4. The time now is 03:36 AM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.