Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Displaying images in same page

Reply
Thread Tools

Displaying images in same page

 
 
carmen
Guest
Posts: n/a
 
      12-28-2004
I am trying to convert the following line
Response.Write "<a href=" & imageFilePath & strPicArray(0,x) & "><img
src=" & thumbFilePath & strPicArray(0,x) & "width=""75"" height=""75""></a>"
to something like this
<li><a href="images/heron.gif" onclick="return wrapContent(event, this.href,
400, 400)">link 2</a></li>
when I change the second line to this
Response.Write "<li><a href='"& thumbFilePath & strPicArray(0,x)
&"'"onclick="'"return wrapContent(event, this.href, 106, 131)"'>><img src='"
& thumbFilePath & strPicArray(0,x) & "'width=""75"" height=""75""></a></li>"

I get errors stating Expected end of statement. I'm trying to learn but am
getting stumped on this.
Thanks for any comments that will help

C.


 
Reply With Quote
 
 
 
 
Ray Costanzo [MVP]
Guest
Posts: n/a
 
      12-28-2004
Did you miss my answer in your other thread about this from
yesterday?

Ray at work

"carmen" <carmen@iyahoo_Spam.com> wrote in message
news:Ov%(E-Mail Removed)...
> I am trying to convert the following line
> Response.Write "<a href=" & imageFilePath & strPicArray(0,x)

& "><img
> src=" & thumbFilePath & strPicArray(0,x) & "width=""75""

height=""75""></a>"
> to something like this
> <li><a href="images/heron.gif" onclick="return wrapContent(event,

this.href,
> 400, 400)">link 2</a></li>
> when I change the second line to this
> Response.Write "<li><a href='"& thumbFilePath &

strPicArray(0,x)
> &"'"onclick="'"return wrapContent(event, this.href, 106,

131)"'>><img src='"
> & thumbFilePath & strPicArray(0,x) & "'width=""75""

height=""75""></a></li>"
>
> I get errors stating Expected end of statement. I'm trying to

learn but am
> getting stumped on this.
> Thanks for any comments that will help
>
> C.
>
>



 
Reply With Quote
 
 
 
 
carmen
Guest
Posts: n/a
 
      12-28-2004
I saw your answer and I was able to get it to work. Thanks for the help. I
am now trying to convert it to display another way. I thought I understood
but I confused on writing the output another way.


"Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in
message news:(E-Mail Removed)...
> Did you miss my answer in your other thread about this from
> yesterday?
>
> Ray at work
>



 
Reply With Quote
 
Ray Costanzo [MVP]
Guest
Posts: n/a
 
      12-28-2004
I can see why you're confused. That string is disorienting. :]
Let's try simplifying things by breaking it into pieces. You can
then glue it all back together after the fact if you desire.


Response.Write "<li>"
Response.Write "<a href=""images/heron.gif"" "
Response.Write "onclick=""return wrapContent(event, this.href,400,
400)"""
Response.Write ">link 2</a></li>"

Again though, why Response.Write this at all? Why not just write the
HTML?


%> <--- Note that we're OUT of ASP block [---------
<li><a href="<%=thumbFilePath & strPicArray(0,x)%>" onclick="return
wrapContent(event, this.href, 106, 131)">
<img src="<%=thumbFilePath & strPicArray(0,x)%>" width="75"
height="75"></a></li>

Ray at work









"carmen" <carmen@iyahoo_Spam.com> wrote in message
news:(E-Mail Removed)...
> I saw your answer and I was able to get it to work. Thanks for the

help. I
> am now trying to convert it to display another way. I thought I

understood
> but I confused on writing the output another way.
>
>
> "Ray Costanzo [MVP]" <my first name at lane 34 dot commercial>

wrote in
> message news:(E-Mail Removed)...
> > Did you miss my answer in your other thread about this from
> > yesterday?
> >
> > Ray at work
> >

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Displaying HTML page with images from ZIP? Cruithne3753 Java 3 02-11-2008 11:26 PM
Displaying Images From An SQL Database in a WEb Page Just Me ASP .Net 2 09-04-2007 04:52 PM
Displaying Images on a page hplayer03 ASP .Net 1 08-14-2007 07:45 PM
displaying different content types in same page subha Perl Misc 16 01-28-2006 04:59 AM
Displaying Images from a Web page Slaphead HTML 6 09-11-2004 10:45 PM



Advertisments