Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asptoday_discuss thread: Mixing lines of html and asp to output dynamic table


Message #1 by "Tan Chye Ting" <chyeting18@h...> on Wed, 16 Jan 2002 01:43:57
halo,



i'm trying to change html coding which generate a table to asp coding.my 

problem is a can't detect the HEIGHT="<%=HistoHeight(i)%> in the asp 

coding.what is wrong with my asp coding?PLease help..thank you..



from html



 <TR>

  <%FOR i=0 TO UBound(Value_Array)%>

  <% if Value_Array(i) > 0 then %>

  <TD VALIGN=BOTTOM><IMG SRC="../images/red1.gif" width=25 

HEIGHT="<%=HistoHeight(i)%>"></TD>

  <% else %>

  <TD VALIGN=BOTTOM><FONT FACE="Arial,Helvetica" SIZE=1><CENTER>

<%=Value_Array(i) %></CENTER></FONT></TD> 

  <% end if %>

  <%NEXT%>

  </TABLE>





to vbscript(asp coding)



FOR i=0 TO UBound(Value_Array)

if Value_Array(i) > 0 then 

Response.Write _			

"<TD VALIGN=""BOTTOM"">" & _

"<IMG src=../../../images/red1.gif width=25 HEIGHT=HistoHeight(i)></TD>" 

else 

Response.Write _

"<TD VALIGN=""BOTTOM"">" & _

"<IMG src=../../../images/blue.gif width=25 HEIGHT=HistoHeight(i)></TD>" 

end if 

NEXT



Message #2 by David Stamper <davids@s...> on Wed, 16 Jan 2002 19:58:16 +0000
Should it be this :



"<IMG src=../../../images/red1.gif width=25 HEIGHT=" & HistoHeight(i) & 

"></TD>"





Dave



Message #3 by "Tan Chye Ting" <chyeting18@h...> on Thu, 17 Jan 2002 01:52:32
thanx for your answer...



> Should it be this :

> 

> "<IMG src=../../../images/red1.gif width=25 HEIGHT=" & HistoHeight(i) & 

> "></TD>"

> 

> 

> Dave

> 


  Return to Index