By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,508 Members | 1,210 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,508 IT Pros & Developers. It's quick & easy.

need url parameter separator "&" not "&"

P: n/a
I have an image control (that pulls an image off an ESRI map server):
<ASP:IMAGE ID="imgZonedCountry" RUNAT="server"></ASP:IMAGE>

In the code behind I am setting the ImageURL to a String value with url
parameters like this:

imgZonedCountry.ImageUrl =
"http://server/servlet/com.esri.wms.Esrimap?param1=x&param2=y

When it serves up the page, I'm getting "&amp;" in place of the "&"
separator and my image is not coming up.

How can I deal with this?

--
_____
DC G
Jul 21 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Use Server.URLEncode to encode the URL properly and you will be fine.

"DC Gringo" wrote:
I have an image control (that pulls an image off an ESRI map server):
<ASP:IMAGE ID="imgZonedCountry" RUNAT="server"></ASP:IMAGE>

In the code behind I am setting the ImageURL to a String value with url
parameters like this:

imgZonedCountry.ImageUrl =
"http://server/servlet/com.esri.wms.Esrimap?param1=x¶m2=y

When it serves up the page, I'm getting "&" in place of the "&"
separator and my image is not coming up.

How can I deal with this?

--
_____
DC G

Jul 21 '05 #2

P: n/a
Sounds like and issue for
UrlDecode() and UrlEncode()

Curt

"DC Gringo" <dc******@visiontechnology.net> wrote in message
news:ur****************@TK2MSFTNGP12.phx.gbl...
I have an image control (that pulls an image off an ESRI map server):
<ASP:IMAGE ID="imgZonedCountry" RUNAT="server"></ASP:IMAGE>

In the code behind I am setting the ImageURL to a String value with url
parameters like this:

imgZonedCountry.ImageUrl =
"http://server/servlet/com.esri.wms.Esrimap?param1=x&param2=y

When it serves up the page, I'm getting "&amp;" in place of the "&"
separator and my image is not coming up.

How can I deal with this?

--
_____
DC G

Jul 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.