Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Double quotes in string-Help!

Status
Not open for further replies.

aspengal

Technical User
Dec 27, 2004
41
US
ds.tables[0].rows[0][0] =
"<a href=" + """ + ds.Tables[0].Rows[0][2] + """ + ">"

I do not know whow to have a double quote within a double quote.

ds.Tables[0].Rows[0][2] has a value of
so, my final output should be :
<a href = "
Please help!
 
use '\"' instead of the " so it would be like this

Code:
string test = "this is a '\"' quote"

output
"this is a " qoute"
 
Thanks for the post, but it wont work in my case.. Here is my code.
ds.Tables[0].Rows[0]= "<a href="+ " '\"' " + ds.Tables[0].Rows[2]

The output I want is :
ds.Tables[0].Rows[2] has I just want to add a double quotes in front of a double quotes after .com.

Desired Output:
<a href = "
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top