用fiddler调试下,看传输返回的http错误代码是什么。

解决方案 »

  1.   

    你这个不需要再耗费精力研究了,ie7本身就有很多问题,直接跨到ie8上,也不会有问题了。
    另外注意,在ie7以上浏览器,F12选择一些兼容性视图
    浏览器的标准规范,w3c这些,是分步骤的事还有,如果没有中文,则没必要加密解密的
      

  2.   

    参考: Server.UrlEncode vs. HttpUtility.UrlEncode
    如果是这样的话,如果你使用Server.UrlEncode,可能会涉及到编码,换用HttpUtility.UrlEncode试试 //全部加密传输
    link.NavigateUrl = "ShowFileBG.aspx?ClientId=" + HttpUtility.UrlEncode(TClientId) + "&Zbfile="+HttpUtility.UrlEncode(TZbfile)+"&GoodName=" + HttpUtility.UrlEncode(TGoodName) + "&GoodCode=" + HttpUtility.UrlEncode(TGoodCode);//解密接收
    string ClientId = "", Zbfile = "",GoodName="",GoodCode="";ClientId = HttpUtility.UrlDecode(Request.QueryString["ClientId"].ToString().Trim());
    Zbfile = HttpUtility.UrlDecode(Request.QueryString["Zbfile"].ToString().Trim());
    GoodName = HttpUtility.UrlDecode(Request.QueryString["GoodName"].ToString().Trim());
    GoodCode = HttpUtility.UrlDecode(Request.QueryString["GoodCode"].ToString().Trim());
      

  3.   

    感谢各位提供的方法,我已经尝试 3 和 5楼的方案都未成功,
    2 楼版主提供的
    用fiddler调试下,看传输返回的http错误代码是什么。 
    我还没有测试,没用个这个软件,明天尝试一下。
    另外我希望 caozhy 版主 把我这个问题置顶。谢谢!
      

  4.   

    看返回的http错误代码不需要fiddler,IE7 IE8等浏览器按F12就可以打开开发者工具,在网络标签页里面就可以看请求和回应的信息
    Quote: 引用 6 楼 zmxhdh 的回复:

    感谢各位提供的方法,我已经尝试 3 和 5楼的方案都未成功,
    2 楼版主提供的
    用fiddler调试下,看传输返回的http错误代码是什么。 
    我还没有测试,没用个这个软件,明天尝试一下。
    另外我希望 caozhy 版主 把我这个问题置顶。谢谢![/quote
      

  5.   

    ie6 ie7显示不了图片?把你html代码发出来看看。把里面的img单独提出来放到ie6 ie7里面去测下。很明显 兼容性的问题
      

  6.   

    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title></title>
    </head>
    <body>
        <form id="form1" runat="server">
        <table border="0" cellpadding="0" cellspacing="0" width="100%">
            <tr>
                <td align="center" valign="middle" style=" background-color:#ffffff;height:30px;font-size:12px;font-weight:bold;color:#666666;line-height:30px; border-bottom:2px dotted #663366;border-top:2px dotted #663366;">
                    <asp:Label ID="lblClientId" runat="server" style="color: #000000"></asp:Label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:Label ID="lblFileName" runat="server" style="color: #0000FF"></asp:Label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:Label ID="lblGoodName" runat="server" style="color: #000000"></asp:Label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:Label ID="lblGoodCode" runat="server" style="color: #0000FF"></asp:Label>                
                </td>
            </tr>        
        </table>
        <div>    
            <asp:Image ID="oImg" runat="server" />    
        </div>
        </form>
    </body>
    </html>using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Web;
    using System.Web.UI;
    using System.Web.UI.WebControls;namespace LtnOA1.BG
    {
        public partial class ShowFileBG: System.Web.UI.Page
        {
            protected LtnOA.Classes.UpLoadImage LoadFile = new LtnOA.Classes.UpLoadImage();
            protected void Page_Load(object sender, EventArgs e)
            {
                if (Session["UserId"] == null)
                {
                    Response.Redirect("../Inc/Error.aspx?DescriptionType=0&ErrDescription=您没有登录或者你的时间已经到期,请重新登录,谢谢!&LocationBack=../Logon.aspx");
                    return;
                }            if (!Page.IsPostBack)
                {
                    string ClientId = "", Zbfile = "", GoodName = "", GoodCode = "";                ClientId = Server.UrlDecode(Request.QueryString["ClientId"].ToString().Trim());
                    Zbfile = Server.UrlDecode(Request.QueryString["Zbfile"].ToString().Trim());
                    GoodName = Server.UrlDecode(Request.QueryString["GoodName"].ToString().Trim());
                    GoodCode = Server.UrlDecode(Request.QueryString["GoodCode"].ToString().Trim());                if (ClientId != "" && Zbfile != "")
                    {
                        string TxtDir = ClientId.Trim();
                        string Dir1 = LoadFile.FristZM(TxtDir);
                        string ImageName = Zbfile.Trim();
                        Dir1 = "../upFile/" + Dir1.Trim() + "/" + TxtDir.Trim() + "/" + ImageName;
                        lblFileName.Text = "图片名称:" + Zbfile.ToString().Trim();
                        lblClientId.Text = "客户编码:" + ClientId.ToString().Trim();
                        lblGoodName.Text = "产品名称:" + GoodName.ToString().Trim();
                        lblGoodCode.Text = "产品规格:" + GoodCode.ToString().Trim();
                        oImg.ImageUrl = Dir1;
                    }
                }
            }
        }
    }
      

  7.   

    F12 看到的值
    <img width="1904" height="589" src="http://192.168.0.254/NetOA/upFile/A/A0001/123.jpg">
      

  8.   


    我用F12查看发现一个问题,能够显示图片,可以看到如下属性
    不能图片就没有 Complete  这个属性,请问这个参数是如何得来的,谢谢!
      

  9.   

    不能显示图片的就没有 Complete  这个属性,请问这个参数是如何得来的,谢谢!