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!

ImageUrl ampersands

Status
Not open for further replies.

ChainsawJoe

Programmer
Dec 5, 2000
154
GB
Hi all,

I'm using an Image webcontrol within a purchase confirmation page on an eCommerce wensite in order to specify affiliate tag info.

E.g.
Code:
imgTracker.ImageUrl = "[URL unfurl="true"]https://tracker.clicktrade.com/Tracker/Sale.dll?clicktrade=1234&sale="[/URL] & Value & "&uarg=" & OrderId

Where "Value" is the order value and "OrderId" is the ..uh.. order id..

Problem: the above renders as:
Code:
[URL unfurl="true"]https://tracker.clicktrade.com/Tracker/Sale.dll?clicktrade=1234&amp;sale=<some[/URL] value>&amp;uarg=<some id>

Obviously the "&amp;" completely screws it up. I decided the easiest route was to encode the amps as "%26" but the affiliate people are telling me that this isn't working for them.

My question: how can I use the Image webcontrol with "&" without it htmlencoding it? OR is it just better to use a serverside Img HTMLcontrol and set the href using "&"?

Many thanks tek dudes!

--------------------------------------------------
- better than toast.
Penguins - better than --------------------------------------------------
 
Don't worry yourselves about this one unless you actually know the answer; I'm using a serverside img HTMLcontrol and it's working just peachy.

:)

--------------------------------------------------
- better than toast.
Penguins - better than --------------------------------------------------
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top