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

Syntax help 1

Status
Not open for further replies.

craigward

Programmer
Nov 13, 2007
230
GB
Hi,

I am creating a .xml file using classic asp. Problem i have is the folowing string of the code gets an error because ASP can't handle my double quotes in the link section it wants single quote link='code in here' but i can't do that. If i do, When it translates to the xml page i get an error.

I figure it is easier to do something in the ASP to pass the double quotes than doing something on the XML page.

Any help would be appreciated. Thanks

Code:
	act.WriteLine"<set label='"&(oRs("wce_uid"))&"' value='"&(oRs("Amount"))&"' link="javascript:loadTwo('SalesDrillDownBuilder_Chart.asp?filename=filename')" />" & vbcrlf
 
double up the double quotes

I.E. If you want to write, exactly has you see it:

This is a "quote"

Code:
act.writeln("This is a [COLOR=red]""[/color]quote[COLOR=red]""[/color]");

--------
GOOGLE is a great resource to find answers to questions like "how do i..."

If you don't know exaclty what you want to do or what to search on, try Google Suggest: --------
I have recently been semi-converted to ensuring all my code (well most of it) works in both javascript and non-javasc
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top