if XML string image data from webservice is blank ,then show your image from local folder, code sample :
<img src="<%#XPath("image").ToString().Trim().Length !=0 ? XPath("image") : "images/small_no_images.jpg"%>" alt="<%#XPath("title")%>-Sports Cheap Deals" border="0"/></a>
No comments:
Post a Comment