The parameter value should also be urlencoded
Response.Write "<td align=""center"">" & _
"<a href=""companycontacts.asp?Company=" & _
Server.URLEncode(rstContacts(1).Value) & _
""" target=_new>" & _
"<img src=""images\contact.ico"" width=""25""
height=""25"" border=""0""></a></td>"
--
Mark Schupp
--
Head of Development
Integrity eLearning
Online Learning Solutions Provider
mschupp@ielearning.com
http://www.ielearning.com
714.637.9480 x17
"Tom B" <shuckle@hotmail.com> wrote in message
news:%23jKJBMOXDHA.656@tk2msftngp13.phx.gbl...[color=blue]
> Response.Write "<td align=""center"">" & _
> "<a href=""companycontacts.asp?Company=" & _
> rstContacts(1).Value & _
> """ target=_new>" & _
> "<img src=""images\contact.ico"" width=""25""
> height=""25"" border=""0""></a></td>"
>
> All I've done is add double quotes around the properties of your tags.[/color]
The[color=blue]
> result will be
> <td align="center"><a href="companycontacts.asp?Company=Andark[/color]
Marine"><img[color=blue]
> src="images\contact.ico" width="25" height="25" border="0"></a></td>
>
> I've never tried but I'm pretty sure an ico file isn't going to show up on
> IE
>
>
>
> "Mark Sippitt" <msippitt@hotmail.com> wrote in message
> news:081d01c35cb1$9f40b290$a501280a@phx.gbl...[color=green]
> > I have a problem with the following code :
> >
> > Response.write rstContacts(1).Value
> >
> > The above line prints "Andark Marine"
> >
> > However the following only passes "Andark" and stops at
> > the space. How do I get over this ? Its the same with all
> > records.
> >
> > Response.Write("<td align=center><a
> > ref=companycontacts.asp?Company=" & rstContacts(1).Value
> > & " target=_new><img src=images\contact.ico width=25
> > height=25 border=0></a></td>")
> >
> > Thanks for our help
> > Mark
> >[/color]
>
>[/color]