Response.write with alt statement 
Author Message
 Response.write with alt statement

Hi all

I am trying to right in asp a statement like

<% Response.Write ""<img src=ScannedData/Inspection/t_jpeg.gif"" ALT=""" &
date() & """> %>

and I am having lots of trouble getting it to display the alt tag with
dynamic data like the date or a database value of something.

Can anyone help me

Regards

Dave



Fri, 01 Jul 2005 18:44:52 GMT  
 Response.write with alt statement
Hi dave

You may want,

Quote:
> <% Response.Write "<img src=ScannedData/Inspection/t_jpeg.gif ALT='" &
> date() & "'>" %>

instead of

Quote:
> <% Response.Write ""<img src=ScannedData/Inspection/t_jpeg.gif"" ALT=""" &
> date() & """> %>

--
Have a nice day.
Han Pohwan, Microsoft MVP, Korea


Quote:
> Hi all

> I am trying to right in asp a statement like

> <% Response.Write ""<img src=ScannedData/Inspection/t_jpeg.gif"" ALT=""" &
> date() & """> %>

> and I am having lots of trouble getting it to display the alt tag with
> dynamic data like the date or a database value of something.

> Can anyone help me

> Regards

> Dave



Fri, 01 Jul 2005 19:06:01 GMT  
 Response.write with alt statement
I have never gotten a response.write to populate the ALT tag dynamically
either, correct syntax or not.


Quote:
> Hi all

> I am trying to right in asp a statement like

> <% Response.Write ""<img src=ScannedData/Inspection/t_jpeg.gif"" ALT=""" &
> date() & """> %>

> and I am having lots of trouble getting it to display the alt tag with
> dynamic data like the date or a database value of something.

> Can anyone help me

> Regards

> Dave



Wed, 06 Jul 2005 04:19:35 GMT  
 Response.write with alt statement

Quote:
> I am trying to right in asp a statement like

> <% Response.Write ""<img src=ScannedData/Inspection/t_jpeg.gif"" ALT=""" &
> date() & """> %>

I tested this and both of the following snippets within an ASP page worked
for me and the popup showed the current date, allbeit in different formats:

<img src="../images/blue-green_eye_e0.gif" alt='<%=now%>'>

<%
 Response.Write "<img src=""../images/blue-green_eye_e0.gif""
alt="""+cstr(now)+""">"
%>

Granted this is VBScript.



Mon, 17 Oct 2005 04:26:33 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. writing out double quotes in Response.Write

2. Writing out VBS code with response.write()

3. writing quotes with response.write

4. Writing comma delimited text files using double quotes - Write Statement

5. Proposal: alt.binaries.examples.vb4 , alt.binaries.examples.vcpp , alt.binaries.examples.java

6. Proposal: alt.binaries.examples.vb4 , alt.binaries.examples.vcpp , alt.binaries.examples.java

7. Sendkeys statement for "ALT-PRTSC"

8. Popup with responses written in code

9. asp response.write in asp.net

10. Response.Write compilation error

11. Response.write - View query with parameters

12. response.write question

 

 
Powered by phpBB® Forum Software