473,399 Members | 3,038 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

Image control querystring params

Hi all,

I'm trying to add querystring parameters onto an ASP image control ImageUrl
property.

Basically, the aspx page defines the base URL (such as ImageUrl =
http://localhost) and the class is adding on paramters. But when I do this,
the parameters are getting HTML encoded... so for example,

_myimage.ImageUrl += "?test=one&test=two";

Will show up as: ?test=one&test=two.

This is likely an easy one but my brain is fried.... ideas?

Thanks,
Brian
Nov 18 '05 #1
4 1954
Perhaps you could HTMLDecode them?
http://msdn.microsoft.com/library/de...ecodetopic.asp
http://www.devx.com/vb2themax/Tip/19163

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
"Brian H" <no****@nospam.com> wrote in message
news:u$*************@TK2MSFTNGP12.phx.gbl...
Hi all,

I'm trying to add querystring parameters onto an ASP image control ImageUrl property.

Basically, the aspx page defines the base URL (such as ImageUrl =
http://localhost) and the class is adding on paramters. But when I do this, the parameters are getting HTML encoded... so for example,

_myimage.ImageUrl += "?test=one&test=two";

Will show up as: ?test=one&amp;test=two.

This is likely an easy one but my brain is fried.... ideas?

Thanks,
Brian

Nov 18 '05 #2
Hi Steve,

Thanks for the idea, but I actually tried that with no success. It still
ends up HTML encoded, so the encoding must be happening further up the
control stack.

Thanks for the idea, though,

Brian
"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
news:eX*************@TK2MSFTNGP10.phx.gbl...
Perhaps you could HTMLDecode them?
http://msdn.microsoft.com/library/de...ecodetopic.asp http://www.devx.com/vb2themax/Tip/19163

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
"Brian H" <no****@nospam.com> wrote in message
news:u$*************@TK2MSFTNGP12.phx.gbl...
Hi all,

I'm trying to add querystring parameters onto an ASP image control

ImageUrl
property.

Basically, the aspx page defines the base URL (such as ImageUrl =
http://localhost) and the class is adding on paramters. But when I do

this,
the parameters are getting HTML encoded... so for example,

_myimage.ImageUrl += "?test=one&test=two";

Will show up as: ?test=one&amp;test=two.

This is likely an easy one but my brain is fried.... ideas?

Thanks,
Brian


Nov 18 '05 #3
Does it work when trying to use these parameters from the target page ?
AFAIK this is actually legal. I remember to have seen someone that
recommended to encode the & on the querystring as &amp; (w3.org ?)

Patrice

"Brian H" <no****@nospam.com> a écrit dans le message de
news:u$*************@TK2MSFTNGP12.phx.gbl...
Hi all,

I'm trying to add querystring parameters onto an ASP image control ImageUrl property.

Basically, the aspx page defines the base URL (such as ImageUrl =
http://localhost) and the class is adding on paramters. But when I do this, the parameters are getting HTML encoded... so for example,

_myimage.ImageUrl += "?test=one&test=two";

Will show up as: ?test=one&amp;test=two.

This is likely an easy one but my brain is fried.... ideas?

Thanks,
Brian

Nov 18 '05 #4
Interesting -- perhaps it does :) I should try it and see.

Brian

"Patrice" <no****@nowhere.com> wrote in message
news:e7**************@TK2MSFTNGP09.phx.gbl...
Does it work when trying to use these parameters from the target page ?
AFAIK this is actually legal. I remember to have seen someone that
recommended to encode the & on the querystring as &amp; (w3.org ?)

Patrice

"Brian H" <no****@nospam.com> a écrit dans le message de
news:u$*************@TK2MSFTNGP12.phx.gbl...
Hi all,

I'm trying to add querystring parameters onto an ASP image control

ImageUrl
property.

Basically, the aspx page defines the base URL (such as ImageUrl =
http://localhost) and the class is adding on paramters. But when I do

this,
the parameters are getting HTML encoded... so for example,

_myimage.ImageUrl += "?test=one&test=two";

Will show up as: ?test=one&amp;test=two.

This is likely an easy one but my brain is fried.... ideas?

Thanks,
Brian


Nov 18 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Neil Woodvine | last post by:
***Scenario ... I have a DataList with a hyperlink WebControl in the Item Template. I want to display a 64x64 image in the Hyperlink and set the NavigateURL to the full size image. ***Source...
10
by: John Smith | last post by:
I know that uploading an image to a database has been covered, oh, about 3 trillion times. However, I haven't found anything covering uploading to a MySQL database with .net. Please don't...
5
by: Brian H | last post by:
Hi all, I'm trying to add querystring parameters onto an ASP image control ImageUrl property. Basically, the aspx page defines the base URL (such as ImageUrl = http://localhost) and the class...
5
by: Mark | last post by:
Hi, I'm just having a few problems working through the design of some controls. Basically i want to have link (linkbutton etc) that will do postback, in my case do a delete, but it needs your...
7
by: Scott Schluer | last post by:
Is there a way to use the Image class to convert a color photo (GIF or JPEG) to a B&W photo? Thanks, Scott
3
by: ACaunter | last post by:
Hi there, I was wondering how i could have a slider bar or something on my ASP.Net page to control the image quality.. like change it's sharpness, brightness, and contrast?? is that possible??...
5
by: footballhead | last post by:
I have a site that has MANY different clothing categories. I have a page set up for displaying the products (productsearch.aspx) when a user clicks one of the category links on the navigation menu....
2
by: rn5a | last post by:
Assume that an ASPX page is accessed using the following URL: http://myserver/Page1.aspx?fname=john The value of the querystring fname (which is john) can be retrieved using both...
3
by: computer_guy | last post by:
Hi Everyone, I run into a problem. I am trying to write an aspx that can dynamically generate an image based on some input parameters. Things are very simple if the size of the parameters is...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.