I am having trouble building a URL the serves up an image
dynamically...something involving the & separating my URL parameters. If I
put the same URL in with & instead of the code-generated &, everything
is fine. I've tried URLEncode and URLDecode in both directions and no dice.
hELP!
'declare and build the URL
Dim theURL As String = ""
theURL = sServerName & _
sPath & _
"servicename=" & sServiceName & _
"&a=" & sRequest & _
"&b=" & sWidth & _
"&c=" & sHeight & _
"&d=" & sFormat & _
"&e=" & sLayers & _
"&f=" & sWmtVer & _
"&g=" & sSrs & _
"&h=" & sBbox
'Set the image's url and alt tag
imgWrsiHome.ImageUrl = HttpUtility.UrlDecode(theURL)
http://theserver.com?servicename=r4&...G:4326&h=5
_____
DC G