troubleshooting Question

IF Statement wrong?

Avatar of garethtnash
garethtnashFlag for United Kingdom of Great Britain and Northern Ireland asked on
ASPHTMLVB Script
3 Comments1 Solution242 ViewsLast Modified:
My HTML editor is telling me that this is the wrong way of doing this -

<%IF RsProductDetail.Fields.Item("Image2") <> "" then %><body onload="MM_preloadImages('<%=(RsProductDetail.Fields.Item("MainImage").Value)%>','<%=(RsProductDetail.Fields.Item("Image2").Value)%><%IF RsProductDetail.Fields.Item("Image3") <> "" then %>,'<%=(RsProductDetail.Fields.Item("Image3").Value)%><%End if%><%IF RsProductDetail.Fields.Item("Image4") <> "" then %>,'<%=(RsProductDetail.Fields.Item("Image4").Value)%><%End if%><%IF RsProductDetail.Fields.Item("Image5") <> "" then %>,'<%=(RsProductDetail.Fields.Item("Image5").Value)%><%End if%><%IF RsProductDetail.Fields.Item("Image6") <> "" then %>,'<%=(RsProductDetail.Fields.Item("Image6").Value)%>')"><%Else%><Body><%End if%>

It isn't however telling me how to correct the error.

Grateful for thoughts - thanks
ASKER CERTIFIED SOLUTION
uvals

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 3 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros