link and query string question

P

Paul M

Hi
Is it possible using asp to have the querystring get its value from an image
in the smame cell. I have a link called "order a print" as you can see from
the code I have to manually insert the name of the image into the
querystring
Thanks
Paul M

<td align="center"> <a
href="javascript:ImageView('paintings/large/display-rw.asp?image=316.jpg');">
<img src="paintings/thumbs/fig/316_Before%20the%20show.jpg" width="170"
height="212" border="0"></a><p>
316 Before the show<br>
<a href="buyprint.asp?ImageName=316 Before the show">
<span lang="en-gb">
Order a
print</span> </a> </p></td>
 
M

MD Websunlimited

That is perfectly fine. The only thing is I would URL encode the ImageName value a space = 20%
 
P

Paul M

Thanks Mike
This is the way I am doing it now but I have to copy and paste the "order a
print" link and then manually insert the image name into the querystring. I
was hoping to have the link automatically get the image name from the cell
so I can just use the same link for all the images on the page and just copy
and past the link into each cell with an image
ie
<a href="buyprint.asp?ImageName=get the image name from the image in the
cell asp code">

and how do you URL encode the ImageName value a space = 20%
Thanks
Paul M
 
S

Stefan B Rusynko

Suggest you rethink your app
- save the image file names in a DB and call all your links from there

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
_____________________________________________


| Thanks Mike
| This is the way I am doing it now but I have to copy and paste the "order a
| print" link and then manually insert the image name into the querystring. I
| was hoping to have the link automatically get the image name from the cell
| so I can just use the same link for all the images on the page and just copy
| and past the link into each cell with an image
| ie
| <a href="buyprint.asp?ImageName=get the image name from the image in the
| cell asp code">
|
| and how do you URL encode the ImageName value a space = 20%
| Thanks
| Paul M
|
|
| | > That is perfectly fine. The only thing is I would URL encode the ImageName
| > value a space = 20%
| >
| > --
| > Mike -- FrontPage MVP '97 - '02
| > http://www.websunlimited.com
| > FrontPage Add-ins Summer Promotion -
| > FREE Purchase J-Bots Plus 2004 & receive Meta Tag Maker 2004 a $24.95
| > value FREE
| >
| > | >> Hi
| >> Is it possible using asp to have the querystring get its value from an
| >> image in the smame cell. I have a link called "order a print" as you can
| >> see from the code I have to manually insert the name of the image into
| >> the querystring
| >> Thanks
| >> Paul M
| >>
| >> <td align="center"> <a
| >> href="javascript:ImageView('paintings/large/display-rw.asp?image=316.jpg');">
| >> <img src="paintings/thumbs/fig/316_Before%20the%20show.jpg"
| >> width="170" height="212" border="0"></a><p>
| >> 316 Before the show<br>
| >> <a href="buyprint.asp?ImageName=316 Before the show">
| >> <span lang="en-gb">
| >> Order a
| >> print</span> </a> </p></td>
| >>
| >
| >
|
|
 
P

Paul M

Thanks Stefan
I am planning on using a database long term but I just needed something up
there for the xmas trade
Paul M
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top