mangeloni
03-02-2003, 09:36 PM
I've got the following code which works on one edit page:
<% if (EditGuesser.Fields.Item("BG_Photo2") != "") { %>
<img src="../uploaded_images/<%=(EditGuesser.Fields.Item("UserName").Value)%>/<%=(EditGuesser.Fields.Item("BG_Photo2").Value)%>">
<% } else if (Response.Write("You have not uploaded a Photo2 for your Guesser")) { %>
<% } %>
I have copied and pasted this code into 2nd edit page where the record set and field names are exactly the same. While the image will display when the field has a value, the Response.Write will not display when the value is empty.
What is going on here that I am not seeing? Is there another way to code this?
Any help is greatly appreciated
~MVA
<% if (EditGuesser.Fields.Item("BG_Photo2") != "") { %>
<img src="../uploaded_images/<%=(EditGuesser.Fields.Item("UserName").Value)%>/<%=(EditGuesser.Fields.Item("BG_Photo2").Value)%>">
<% } else if (Response.Write("You have not uploaded a Photo2 for your Guesser")) { %>
<% } %>
I have copied and pasted this code into 2nd edit page where the record set and field names are exactly the same. While the image will display when the field has a value, the Response.Write will not display when the value is empty.
What is going on here that I am not seeing? Is there another way to code this?
Any help is greatly appreciated
~MVA