日期:2014-05-16  浏览次数:20361 次

IE8浏览器为什么有些图片不出来,红叉!
代码;前台

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="BGDPRINT_VIEW.aspx.cs" Inherits="WMSPRINT.BGDPRINT_VIEW" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
  <title>图片打印预览</title>
  <link href="Css/manage.css" rel="stylesheet" type="text/css" />
  <link href="Css/Model.Css" rel="stylesheet" type="text/css" />
  <style media="print" type="text/css"> 
  .Noprint{display:none;}
  .PageNext{page-break-after: always;}
  </style>
</head>
<body>
  <center class="Noprint">
  <br />
  <br />
  <div>
  <object id="WebBrowser" classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2" height="0" width="0"></object>
  <input type="button" value="直接打印" onclick="document.all.WebBrowser.ExecWB(6,6)" />
  <input type="button" value="页面设置" onclick="document.all.WebBrowser.ExecWB(8,1)" />
  <input name="button" type="button" onclick="document.all.WebBrowser.ExecWB(7,1)" value="打印预览" id="Button3" />
  <br />
  </div>
  </center>
  <div >
  <asp:Repeater runat="server" ID="repArticle">
  <ItemTemplate>
  <tr style="background: #fff; height:auto;">
  <td>
  <img src ='<%#DataBinder.Eval(Container.DataItem,"Picture")%>' alt="报告单" />
  </td>
  </tr>
  </ItemTemplate>
  </asp:Repeater>
  </div>
</body>
</html>

后台:
namespace WMSPRINT
{
  public partial class BGDPRINT_VIEW : System.Web.UI.Page
  {
  Business M_Business = new Business();
  string strbgdid = "";
  protected void Page_Load(object sender, EventArgs e)
  {
  if (!Page.IsPostBack)
  {
  string p=Request.QueryString["p"];
  string strsql="";
  if (p == "1")
  {
  strbgdid = Session["djbh"] as string;
  strsql = "select picture from wms_picture a,wms_ck_sp_mx b where a.spid=b.spid and upper(a.ph)=upper(b.ph) and b.djbh='" + strbgdid + "'";
  DataTable dt = M_Business.QueryTable(strsql);
  repArticle.DataSource = dt;
  repArticle.DataBind();
  }
  }
  }
  }
}
我这是单据的形式,从后台库读取图片路劲,然后根据路劲显示在界面上!
为什么我只有50张图片的时候能够全部显示出来!
要是有100多张图片的时候就有十几张图片不能显示出来,红叉!



------解决方案--------------------
我碰到过,本身图片有问题的,换张图片就可以了,或者把