http://xml.sz.luohuedu.net/xml/ShowDetail.asp?id=ECD9AE16-8FF0-4A1C-9B9F-5E8B641CB1B1

解决方案 »

  1.   

    <asp:Image id=Image1 Height="60" runat="server" ImageUrl='<%# DataBinder.Eval(Container.DataItem, "FPROD_ID","ReadPic.aspx?id={0}") %>'></asp:Image>
    如果不用程序生成略缩图,那么指定图片的高度即可,宽度IE会帮你按比例缩小的.
      

  2.   

    你可以在
    ReadImage.aspx后面加入参数,指定宽和高ReadImage.aspx?id=xxx&width=100&height=200在ReadImage.aspx里生成缩略图, 相关可参考
    http://xml.sz.luohuedu.net/xml/ShowDetail.asp?id=221BC601-1A1B-4E1F-883D-04B043659703
      

  3.   

    http://xml.sz.luohuedu.net/xml/ShowDetail.asp?id=45E7E33C-F149-450E-B5D5-832958C20538
      

  4.   

    public string getImage(object filename)
    {
    if(File.Exists(Server.MapPath( "图片放的路径"+filename)))
    {    System.Drawing.Image img=System.Drawing.Image.FromFile(Server.MapPath("图片放的路径"+filename));
        int newHeight=0;
    newHeight=(160*img.Height)/img.Width;
    return "<img src='图片放的路径"+filename+"' width='160' height='"+newHeight+"' border='0'>";
    }
    else
    {

    return "";
    }
    }
      

  5.   

    http://xml.sz.luohuedu.net/xml/ShowDetail.asp?id=45E7E33C-F149-450E-B5D5-832958C20538