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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Qoutes in C#

Status
Not open for further replies.

Figzus

Programmer
Mar 21, 2005
36
0
0
US
I have this anchor tag that gets a URL from the database. My web guys tell me when they look at the source it comes out like this:

<a href="MDCLibrary2.aspx?NodeID=105">

My code is this:

<a href=MDCLibrary2.aspx?NodeID=" + drw["ndeNodeID"].ToString()+ ">" + drw["ndeNodeName"].ToString() + "</a>

Just where do I put the quotes to make it look like the way they want it.
 
You can escape the quotes in order to use them inside a string.
For example:

string aString = "This is a nice \"fox\"";

If you print this you will see This is a nice "fox"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top