<asp:DataList ID="HeadDatalist" runat="server" Height="80px">
<itemtemplate>
<table id="Table1" height="80" cellspacing="0" cellpadding="0" width="780" border="0">
<tr>
<td><img src="<%#DataBinder.Eval(Container.DataItem,'company_logo')%>" width="160" height="80"><img src="<%#DataBinder.Eval(Container.DataItem,'company_banner')%>" width="520" height="80"></td>
<td><table width="150" border="0" cellspacing="0" cellpadding="0">
<tr>
<th>&nbsp;

  </th>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
</table>
</td>
</tr>
</table>
</itemtemplate>
</asp:DataList>

解决方案 »

  1.   

    运行结果:编译错误 
    说明: 在编译向该请求提供服务所需资源的过程中出现错误。请检查下列特定错误详细信息并适当地修改源代码。 编译器错误信息: CS1012: 字符文本中字符太多源错误: 行 5:   <table id="Table1" height="80" cellspacing="0" cellpadding="0" width="780" border="0">
    行 6:   <tr>
    行 7:   <td><img src="<%#DataBinder.Eval(Container.DataItem,'company_logo')%>" width="160" height="80"><img src="<%#DataBinder.Eval(Container.DataItem,'company_banner')%>" width="520" height="80"></td>
    行 8:   <td><table width="150" border="0" cellspacing="0" cellpadding="0">
    行 9:   <tr>
     源文件: G:\web\web\webcontrol\top.ascx    行: 7 
      

  2.   

    http://www.csharpproject.com/articles/aspnet/images_multimedia/SimImage.aspx