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

semi colon character was expected

Status
Not open for further replies.

thompom

Technical User
Dec 4, 2006
395
GB
hi - am building an xml file dynamically using asp,
used to work fine but now i get this error

A semi colon character was expected. Error processing resource...

<img src="adverts/vxads/xtra1.jpg" link="3coltemp.asp?pagesetupid=5&adid=6" />

any ideas welcome

thanks MG
 
><img src="adverts/vxads/xtra1.jpg" link="3coltemp.asp?pagesetupid=5&adid=6" />
[tt]<img src="adverts/vxads/xtra1.jpg" link="3coltemp.asp?pagesetupid=5[red]&amp;[/red]adid=6" />[/tt]
 
While that solves the immediate problem, you're still set-up for failure down the road. Dynamically generating a link? URLEncode(link) before plopping it into your link attribute.
 
ok - thanks for the tip
works fine at the moment - when would this issue give me trouble?
 
When your link contains other characters that can be misinterpreted in a URL. Most likely, you just need to be careful to catch all the ampersands, but a "<" in the link, for instance, will break things again. Obviously, you're building query strings, which often contain stuff a user enters. Let the trouble begin!
 
yeah - see the issue - guna encode them henceforth!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top