[英]Problem using Uploadify plugin(JQuery) with ASP.Net
I have a Masterpage like that : 我有一个这样的母版页:
...
<head id="Head1" runat="server">
<asp:ContentPlaceHolder ID="HeadContent" runat="server" />
</head>
...
And in my Aspx page : 在我的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" />
...
I got that error when loading that page : 加载该页面时出现错误:
Erro: jQuery("#ctl00_ContentPlaceHolder1_fupImagem").fileUpload is not a function 错误:jQuery(“#ctl00_ContentPlaceHolder1_fupImagem”)。fileUpload不是一个函数
Any idea whats wrong? 知道怎么了吗?
Paul 保罗
jQuery("#<%=fupImagem.ClientID %>").uploadify({
It changed from fileUpload
to uploadify
in version 2.0.0. 在2.0.0版中,它从
fileUpload
更改为uploadify
。 See the changelog : 请参阅更改日志 :
Function changed to uploadify()
fileUpload() – uploadify()
fileUploadStart() - uploadifyUpload()
fileUploadSettings() - uploadifySettings()
fileUploadCancel() - uploadifyCancel()
fileUploadClearQueue() – uploadifyClearQueue()
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.