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.
<asp:DataList ID="PicturesInF older" runat="server"
CellPadding="3" Visible="true" BorderColor="Bl ack"
ItemStyle-BorderWidth="1p t"
ItemStyle-BorderColor="Bl ack" ItemStyle-BorderStyle="So lid" Width="540"
RepeatDirection ="Horizontal "
RepeatLayout="T able" RepeatColumns=" 3"
OnItemDataBound ="PicturesInFol der_ItemDataBou nd">
<ItemTemplate >
<asp:Image runat="server" ID="Picture"
ImageUrl='<%# Eval("FullName" ).ToString() %>' Width="180" Height="135" />
</ItemTemplate>
<AlternatingIte mStyle BackColor="Tran sparent" />
</asp:DataList></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.
<asp:DataList ID="PicturesInF older" runat="server"
CellPadding="3" Visible="true" BorderColor="Bl ack"
ItemStyle-BorderWidth="1p t"
ItemStyle-BorderColor="Bl ack" ItemStyle-BorderStyle="So lid" Width="540"
RepeatDirection ="Horizontal "
RepeatLayout="T able" RepeatColumns=" 3"
OnItemDataBound ="PicturesInFol der_ItemDataBou nd">
<ItemTemplate >
<asp:Image runat="server" ID="Picture"
ImageUrl='<%# Eval("FullName" ).ToString() %>' Width="180" Height="135" />
</ItemTemplate>
<AlternatingIte mStyle BackColor="Tran sparent" />
</asp:DataList></td>
David
Comment