HI
below in HOuse_info table in database
Id
|
name
|
image
|
behcode
|
1
|
sara
|
3.jpg
|
1111
|
2
|
jack
|
Null
|
2222
|
3
|
micheal
|
5.jpg
|
3333
|
I have datalist in my page that bind image from image column as you see there are 3 row and image column with ID=1 & 3 have value and ID=2 is NULL
when I bind datalist it show 3 column that in 2 column show images from database and in 1 column didn't show any thing becuse ID=2 in image column is =NULL
now I want if there wasn't any image in image column in HOuse_info table it didn't show any thing in datalist I mean I want it doesn't show empty column indatalist it just show 2 column with image not 3 column that one of them be empty
Thanks
<asp:DataList ID="Dllogo" runat="server" RepeatColumns="6" RepeatDirection="Horizontal" CssClass="DimageV">
<ItemTemplate>
<table class="DDL2h">
<tr>
<td class="TDimage" align="center">
<a title='<%#Eval("behcode")%"' href='<%#"../view.aspx?BehCode="+Eval("behcode") %>' target="_blank">
<asp:image ID="TP1" runat="server" ImageUrl='<%#Eval("Logo","image/house/store/logo/{0}")%>'
CssClass="TPH1" Width="153" ImageAlign="Middle" Height="112px"/>
</a>
</td>
</tr>
</table>
</ItemTemplate>
</asp:DataList>