472,956 Members | 2,219 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,956 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 1931
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...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
2
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

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.