Posted on: 12/12/2014 1:44:45 AM | Views : 439

hi,

I have a datalist bound to SQL table called Images.  It retrieves the ImagePath and displays
as image on ASPX as below.

If the datalist is NULL or empy, I want to add a generic imagepath to be shown instead such as
.../Images/DefaultImage.jpg

So there will always be an image no matter what.
thank for suggestions

<asp:DataList  ID="DataList3"  runat="server" DataKeyField="ArtistId"                 DataSourceID="ObjectDataSource5"                 BorderStyle="None" CellPadding="0"            >                Go to the complete details ...