Get ready for BLACK FRIDAY shopping starting in

Forums

ASP

This topic is locked

find recordsfields with values....

Posted 14 Mar 2004 14:02:01
1
has voted
14 Mar 2004 14:02:01 sander kerstens posted:
hi

i want to check if the recordset is empty or has a image path.... if image path then fill the upload2 string with it... if empty then no upload2 string or upload2 string is empty

this is my code sofar:

<%Dim upload2
upload2 = (foto.Fields.Item("fotonaamthumb2".Value)
IF upload2 <>"" THEN%>
upload2 = Server.MapPath(foto.fields.item(fotonaamthumb2".value)
<%ELSE%>
upload2 = ""
<%End If%>

hope you can help me

greetz sander

Replies

Replied 15 Mar 2004 14:23:25
15 Mar 2004 14:23:25 Phil Shevlin replied:
have you tried <pre id=code><font face=courier size=2 id=code>&lt;%
Dim upload2
upload2 = ""
IF foto.Fields.Item("fotonaamthumb2".Value &lt;&gt;"" THEN
upload2 = Server.MapPath(foto.fields.item("fotonaamthumb2".value)
End If
%&gt; </font id=code></pre id=code>

Edited by - wdglide on 15 Mar 2004 14:25:01

Reply to this topic