使用ASP.Net的Uploadify插件(JQuery)时出现问题

Pau*_*aul 0 javascript asp.net upload jquery

我有一个这样的母版页:

...
<head id="Head1" runat="server">
     <asp:ContentPlaceHolder ID="HeadContent" runat="server" />
</head>
...
Run Code Online (Sandbox Code Playgroud)

在我的Aspx页面中:

...

<asp:Content ID="HeadContentFromPage" ContentPlaceHolderID="HeadContent" runat="server">
   <link rel="Stylesheet" type="text/css" href="uploadify.css" />
   <script src="jquery-1.3.2.min.js" type="text/javascript"></script>
   <script src="uploadify.v2.1.0.min.js" type="text/javascript"></script>

   <script type="text/javascript">
      jQuery.noConflict();
      jQuery(document).ready(function() {     
         jQuery("#<%=fupImagem.ClientID %>").fileUpload({
                'uploader': 'uploadify.swf',
                'cancelImg': 'cancel.png',
                'buttonText': 'Browse Files',
                'script': 'Uploader.ashx',
                'folder': 'uploads',
                'fileDesc': 'Image Files',
                'fileExt': '*.jpg;*.jpeg;*.gif;*.png',
                'multi': true,
                'auto': true
         });
      }
   );
   </script>

</asp:Content>
...
 <asp:FileUpload ID="fupImage" runat="server" CssClass="txtBig" />
...
Run Code Online (Sandbox Code Playgroud)

加载该页面时出现错误:

Erro:jQuery("#ctl00_ContentPlaceHolder1_fupImagem").fileUpload不是函数

有什么想法错了吗?

保罗

kar*_*m79 6

jQuery("#<%=fupImagem.ClientID %>").uploadify({
Run Code Online (Sandbox Code Playgroud)

它从改变fileUploaduploadify在2.0.0版本.查看更改日志:

Function changed to uploadify()
fileUpload()           – uploadify()
fileUploadStart()      - uploadifyUpload()
fileUploadSettings()   - uploadifySettings()
fileUploadCancel()     - uploadifyCancel()
fileUploadClearQueue() – uploadifyClearQueue()
Run Code Online (Sandbox Code Playgroud)