all groups > asp.net building controls > march 2004 >
You're in the

asp.net building controls

group:

script works on test PC, not on ISP server?


script works on test PC, not on ISP server? Rudi Ahlers
3/28/2004 11:05:53 PM
asp.net building controls:
The following script work perfectly well on my PC at home, yet when I upload
it, it doesn't work.

if tranRS("subscriber") = "Y" then
response.Write "<IMG SRC=images/tick4.gif ALT='Companies Who Care'
BORDER=0>"
else
response.Write "<IMG SRC=images/cross2.gif ALT='Companies Who
Dont...' BORDER=0>"
End if


I changed the "Y" to an "N", and on my PC I could see the changes. I even
tried to response.write tranRS("subscriber"), and it prints out a "Y" next
to the images on the live site, yet, it doesn't display the cross4.gif

I hope anyone could shed some light one this one?
--

Kind Regards
Rudi Ahlers
+27 (82) 926 1689

Greater love has no one than this, that he lay down his life for his friends
(John 15:13).

Re: script works on test PC, not on ISP server? Victor Garcia Aprea [MVP]
3/28/2004 11:06:53 PM
That means the path to the images are different on the the two servers. Try
to get to the image on the live server by entering its url on the browser,
and after you can get at it, compare the path to the one that is being
outputted by the page.

--
Victor Garcia Aprea
Microsoft MVP | ASP.NET
Looking for insights on ASP.NET? Read my blog:
http://obies.com/vga/blog.aspx
To contact me remove 'NOSPAM'. Please post all questions to the newsgroup

[quoted text, click to view]

Re: script works on test PC, not on ISP server? Rudi Ahlers
3/29/2004 6:31:41 AM
Not really, I ended up changing it from if tranRS("subscriber") = "Y" to if
trim(tranRS("subscriber")) = "Y" and it works fine :)

--

Kind Regards
Rudi Ahlers
+27 (82) 926 1689

Greater love has no one than this, that he lay down his life for his friends
(John 15:13).
[quoted text, click to view]
That means the path to the images are different on the the two servers. Try
to get to the image on the live server by entering its url on the browser,
and after you can get at it, compare the path to the one that is being
outputted by the page.

--
Victor Garcia Aprea
Microsoft MVP | ASP.NET
Looking for insights on ASP.NET? Read my blog:
http://obies.com/vga/blog.aspx
To contact me remove 'NOSPAM'. Please post all questions to the newsgroup

[quoted text, click to view]


Re: script works on test PC, not on ISP server? Rudi Ahlers
3/29/2004 6:31:41 AM
Not really, I ended up changing it from if tranRS("subscriber") = "Y" to if
trim(tranRS("subscriber")) = "Y" and it works fine :)

--

Kind Regards
Rudi Ahlers
+27 (82) 926 1689

Greater love has no one than this, that he lay down his life for his friends
(John 15:13).
[quoted text, click to view]
That means the path to the images are different on the the two servers. Try
to get to the image on the live server by entering its url on the browser,
and after you can get at it, compare the path to the one that is being
outputted by the page.

--
Victor Garcia Aprea
Microsoft MVP | ASP.NET
Looking for insights on ASP.NET? Read my blog:
http://obies.com/vga/blog.aspx
To contact me remove 'NOSPAM'. Please post all questions to the newsgroup

[quoted text, click to view]


AddThis Social Bookmark Button