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 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&test=two.
This is likely an easy one but my brain is fried.... ideas?
Thanks, Brian
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&test=two.
This is likely an easy one but my brain is fried.... ideas?
Thanks, Brian
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 & (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&test=two.
This is likely an easy one but my brain is fried.... ideas?
Thanks, Brian
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 & (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&test=two.
This is likely an easy one but my brain is fried.... ideas?
Thanks, Brian
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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...
|
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...
|
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...
|
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
|
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??...
|
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....
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
| |