Re: "Insert Image" Button not working.

  •  05-02-2006, 11:40 AM

    Re: "Insert Image" Button not working.

    Getting this error.
     
    'FileInfo' is a type in 'IO' and cannot be used as an expression.
     
     
    I traced it to this line in the thumblist.ascx.
     
     
     
    <ItemTemplate>
    <img border="0" src="<%# ThumbUrl((String)(DataBinder.Eval(Container.DataItem,"Name"))) %>" alt="<%# String_Name%>: <%# DataBinder.Eval(Container.DataItem, "Name")%> <%# String_Size%>: <%# (((System.IO.FileInfo)Container.DataItem).Length/1024).ToString("n0")%> KB <%# String_Createddate%>: <%# DataBinder.Eval(Container.DataItem, "CreationTime") %> <%# String_Modifieddate%>: <%# DataBinder.Eval(Container.DataItem, "LastWriteTime")%>" onmouseover="Check(this,1)" onmouseout="Check(this,0)" onclick="insert('<%# ImageUrl((String)(DataBinder.Eval(Container.DataItem,"Name"))) %>')" style="BORDER: white 1px solid" align="center">
     
    </ItemTemplate>
View Complete Thread