473,413 Members | 1,989 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,413 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 1956
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
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.