D
David C
I have a DataList control that shows jpg and gif images just fine. I am
filling the DataList from a list of files in a directory. The directory
might contain tif and pdf files but all that shows in the DataList is the
red X for these files. Am I asking it to do something that is not possible?
If not, are there any alternatives to showing a reduced image for other file
types in a DataList? Thanks.
My DataList control is shown below.
<aspataList ID="PicturesInFolder" runat="server"
CellPadding="3" Visible="true" BorderColor="Black"
ItemStyle-BorderWidth="1pt"
ItemStyle-BorderColor="Black" ItemStyle-BorderStyle="Solid" Width="540"
RepeatDirection="Horizontal"
RepeatLayout="Table" RepeatColumns="3"
OnItemDataBound="PicturesInFolder_ItemDataBound">
<ItemTemplate>
<asp:Image runat="server" ID="Picture"
ImageUrl='<%# Eval("FullName").ToString() %>' Width="180" Height="135" />
</ItemTemplate>
<AlternatingItemStyle BackColor="Transparent" />
</aspataList></td>
David
filling the DataList from a list of files in a directory. The directory
might contain tif and pdf files but all that shows in the DataList is the
red X for these files. Am I asking it to do something that is not possible?
If not, are there any alternatives to showing a reduced image for other file
types in a DataList? Thanks.
My DataList control is shown below.
<aspataList ID="PicturesInFolder" runat="server"
CellPadding="3" Visible="true" BorderColor="Black"
ItemStyle-BorderWidth="1pt"
ItemStyle-BorderColor="Black" ItemStyle-BorderStyle="Solid" Width="540"
RepeatDirection="Horizontal"
RepeatLayout="Table" RepeatColumns="3"
OnItemDataBound="PicturesInFolder_ItemDataBound">
<ItemTemplate>
<asp:Image runat="server" ID="Picture"
ImageUrl='<%# Eval("FullName").ToString() %>' Width="180" Height="135" />
</ItemTemplate>
<AlternatingItemStyle BackColor="Transparent" />
</aspataList></td>
David