Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Please check this code for me

Status
Not open for further replies.

pkuti

IS-IT--Management
Jan 10, 2003
36
KE
The code below when qurried is supposed to return a picture of a plant(PlantPic) and all other fields.
It worked perfectly for just once, now when I querry it it rather tries to open a file...come someone pls tell me what's wrong? Thanks.

<%
'Iterating through the recordset until the EOF is reached
Response.write &quot;<ul>&quot;
Do While NOT rs.EOF
%>
<tr>
<td rowspan=“4”><IMG SRC=&quot;images/<%=RS(&quot;PlantPic&quot;)%>&quot; border=&quot;0&quot; width=&quot;100&quot;> </td>

<th><font size=&quot;2&quot;><%
Response.Write RS(&quot;ScientificName&quot;)%></font></th>
<th><font size=&quot;2&quot;><%
Response.Write RS(&quot;OtherNames&quot;)%></font></th>

<th><font size=&quot;2&quot;><%
Response.Write RS(&quot;Uses&quot;)%></font></th>
<th><font size=&quot;2&quot;><%
Response.Write RS(&quot;ScientificRef&quot;)%></font></th>
</tr>
<%
RS.Movenext
loop

'Clean up...
rs.Close
Set rs = Nothing

cn.Close
Set cn = Nothing
%>



</table>
</body>
</html>
 
Yeah it opens the ASP file...so I am going to do what you suggested.
Thanks.

-Pkuti
 
Sorry I've just reset the IIS but still same problem...It opens the ASP file.

-Pkuti
 
when you say tries to open the file, do you mean open in a developmental state. like in VS or such? how are you trying to open the page.
or are you just trying to click it from the root directory. if so then that will open the file to edit the code. you need to either use the url in your browser or right click the file and click browse to actually launch it. _______________________________________________
{ str = &quot;sleep is good for you. sleep gives you the energy you need to function&quot;;
ptr = /sleep/gi;Nstr = str.replace(ptr,&quot;coffee&quot;);alert(Nstr); }

_______________________________________________
for the best results to your questions: FAQ333-2924
Is your question a
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top