<form id="myform" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="updateImg" runat="server">
        <ContentTemplate>
            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="tb_3" style="margin-top:8px;
                margin-bottom: 8px; height: 100%;">
                <tr>
                    <td valign="top">
                        <table width="100%" border="0" align="center" cellpadding="0" cellspacing="2" class="table1">
                            <tr> <td class="style2">
                                    <table style="width: 100%">
                                        <tr>
                                            <td style="width: 73%">
                                                <div style="height: 270px; overflow-x: auto; overflow-y: auto; border: solid #A4B2BD 1px;
                                                    padding: 0px; margin: 0px; text-align: center;">
                                                           <asp:Repeater ID="Repeater1" runat="server">
                                                        <HeaderTemplate>
                                                            <table width="100%">
                                                                <tr><td align="left"  style="width:30%">
                                                                        物证名称
                                                                    </td>
                                                                   <td align="left"  style="width:50%">
                                                                    </td><td width="15%">
                                                                        选择图片
                                                                    </td>   <td width="5%">                                             /td>                </tr>
                                                            </table>
                                                            <hr />
                                                        </HeaderTemplate>
                                                        <ItemTemplate>
                                                            <table width="100%">
                                                                <tr style=" cursor:pointer" >
                                                                    <script type="text/javascript">
                                                                    $(document).ready(function () {
                                                                        $('#<%# Eval("ID")%>').uploadify({
                                                                            'uploader': '../../scripts/jquery.uploadify-v2.1.4/uploadify.allglyphs.swf',
                                                                            'script': 'UploadHandler.ashx?id=<%# Eval("ID")%>:<%#TECH_ID%>',
                                                                            'cancelImg': '../../scripts/jquery.uploadify-v2.1.4/cancel.png',                                                                          
                                                                                                                                                                       
                                                                            'queueID': 'fileQueue<%# Eval("ID")%>',
                                                                            'buttonImg':'../../scripts/jquery.uploadify-v2.1.4/Browser.png',    
                                                                            'width':'35',                     
                                                                            'height':'30',
                                                                            'auto': true,
                                                                            'multi': true ,
                                                                            'sizeLimit': 10737418240,
                                                                            'onSelect': function(e, queueId, fileObj)
{                                                                                    
                                                                                       document.getElementById('divUpLoad<%# Eval("ID")%>').style.display="inline";                                                                                   
                                                                                    },
                                                                                  'onCancel': function(e, queueId, fileObj,data)
                                                                                    {
                                                                                       document.getElementById("divUpLoad<%# Eval("ID")%>").style.display="none";                                                                                     
                                                                                    },                                                                                

解决方案 »

  1.   

    'onComplete': function(e, queueId, fileObj,data){
                                             document.getElementById("divUpLoad<%# Eval("ID")%>").style.display="none";                                                                showEviImg_Einreg('<%# Eval("ID")%>');  
                                                                                        },                                                                                     onError: function(event, queueID, fileObj,errorObj) {
       alert("文件:" + fileObj.name + "  上传失败:" + errorObj.type + ":" + errorObj.info);
     }
                                                                            });
                                                                        });
                                                                        </script>
                                                                             <td align="left">
                                                                            <%--<asp:Label ID="desc" runat="server" Text='<%# Eval("IDEN_EVIDENCE_NO").ToString().Length==0?Eval("IDEN_EVIDENCE_NAME"):Eval("IDEN_EVIDENCE_NAME").ToString()+"("+Eval("IDEN_EVIDENCE_NO").ToString()+")"%>'></asp:Label>--%>
                                                                            <asp:Label ID="desc" runat="server" Text='<%# Eval("ANNEX_TYPE").ToString()%>'></asp:Label>
                                                                        </td>
                                                                        <td >
                                                                            <div id="fileQueue<%# Eval("ID")%>" >
                                                                            </div>
                                                                        </td>
                                                                        <td align="center" width="15%">
                                                                            <div>
                                                                                <input type="file" id='<%# Eval("ID")%>' />
                                                                            </div>
                                                                            <div id="divUpLoad<%# Eval("ID")%>" style="display: inline;">
                                                                                <a href="javascript:$('#<%# Eval("ID")%>').uploadifyUpload()">上传</a>|
                                                                                <a href="javascript:$('#<%# Eval("ID")%>').uploadifyClearQueue()">取消</a>
                                                                            </div>
                                                                        </td>
                                                                      <td width="5%" onclick="showEviImg_Einreg(<%#Eval("ID") %>)";><font color="#FF0000">查看</font></td>
                                                                    </tr>
                                                                </table>
                                                                <hr />
                                                            </ItemTemplate>
                                                        </asp:Repeater>
                                                    </div>
                                                </td>
                                              </tr>
                                        </table>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="5" align="center" style="height: 45px;">
                                        <table border="0" cellspacing="0" cellpadding="0">
                                            <tr>
                                                <td width="10%" class="table5">
                                                    <span class="tb_4">
                                                        <asp:LinkButton ID="linkBtn_Cancel" class="style1" runat="server" OnClientClick="closepmwin();">关闭</asp:LinkButton>
                                                    </span>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </ContentTemplate>
        </asp:UpdatePanel>
    vs调试时就报错误,uploadhandler.ashx,还没进入到这页就报错误 Http:500,  
    'script': 'UploadHandler.ashx?id=<%# Eval("ID")%>:<%#TECH_ID%>',
    内容过长 分开写 
    求指点
      

  2.   


    'script': 'UploadHandler.ashx?id=<%# Eval("ID")%>:<%#TECH_ID%>',
    你这是干嘛???三目运算?
      

  3.   

    多个参数的写法不是你这样的吧,
    ‘onSelect’         : function (event, queueID, fileObj) {
    $(“#uploadify”).uploadifySettings(‘scriptData’,{‘folederid’:folderId});
    }
    });
    如有多个数据可以用’,'分隔开来。
      

  4.   

    谢谢楼上的,问题找到了
    uploadhandler.ashx   的错误