有那种缩略图的??

解决方案 »

  1.   

    数据库里的没有做过,不过你可以把要显示DATALIST中的图片放在Images下面,然后在HTML绑定
    <asp:DataList id="EmployeeDataList" style="Z-INDEX: 103; LEFT: 9px; POSITION: absolute; TOP: 104px" runat="server" Width="450px" RepeatColumns="2" RepeatDirection="Horizontal">
    <HeaderTemplate>
    <TABLE id="Table18" cellSpacing="1" cellPadding="1" width="760" border="0">
    <TR>
    <TD style="TEXT-ALIGN: center" bgColor="#ffff00" colSpan="4" height="20"></TD>
    </TR>
    </TABLE>
    </HeaderTemplate>
    <FooterTemplate>
    <TABLE id="Table18" cellSpacing="1" cellPadding="1" width="760" border="0">
    <TR>
    <TD style="TEXT-ALIGN: center" bgColor="#ffff00" colSpan="4" height="20"></TD>
    </TR>
    </TABLE>
    </FooterTemplate>
    <ItemTemplate>
    <TABLE id="Table6" cellSpacing="1" cellPadding="1" width="380" height="180" border="0">
    <TR>
    <TD align="right" width="120">身份证号码:
    <BR>
    姓名:
    <BR>
    目前薪资:
    </TD>
    <TD width="120"><%# DataBinder.Eval(Container.DataItem, "身份证号码") %><BR>
    <%# DataBinder.Eval(Container.DataItem, "姓名") %>
    <BR>
    <%# DataBinder.Eval(Container.DataItem, "目前薪资","{0:c}") %>
    </TD>
    <TD width="140"><IMG alt="" src='<%# DataBinder.Eval(Container.DataItem, "身份证号码", "Images/Employee-{0}.jpg") %>'>
    </TD>
    </TR>
    <TR>
    <TD style="TEXT-ALIGN: center" bgColor="#000000" colSpan="4" height="10"></TD>
    </TR>
    </TABLE>
    </ItemTemplate>
    <SeparatorTemplate>
    <IMG alt="" src="Bullets/Animation/004.gif">
    </SeparatorTemplate>
    </asp:DataList>