Nate1
03-24-2008, 09:07 PM
Have an Email system, which uploads attachments, of a number of types (Currently unrestricted) I would like the File types on the email summary to be represented as icons like in windows explorer, or Outlook. Is there anyway I can interact with windows to display these file types on the web page?
<itemtemplate>
<asp:Image ID="imgFileType" ImageUrl="<%#GetFiletypeImage(Databinder.Eval(Container.Dataitem,"FileName")) %>" runat="server" />
<asp:linkbutton CommandName="viewattachment" Font-Size="11px" CssClass="attached" CommandArgument='<%#DataBinder.Eval(Container.DataItem, "FileName")%>'
ID="lbtnAttached" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "FileName")%>'>
</itemtemplate>
<itemtemplate>
<asp:Image ID="imgFileType" ImageUrl="<%#GetFiletypeImage(Databinder.Eval(Container.Dataitem,"FileName")) %>" runat="server" />
<asp:linkbutton CommandName="viewattachment" Font-Size="11px" CssClass="attached" CommandArgument='<%#DataBinder.Eval(Container.DataItem, "FileName")%>'
ID="lbtnAttached" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "FileName")%>'>
</itemtemplate>