-
-
[求助]上传控件AjaxUploader用到项目中出错,语法错误
-
发表于: 2013-10-9 11:49 1228
-
环境:VS2010 系统:WIN7 IE浏览器
单独使用AjaxUploader作为一个项目,点击“Upload multiple files”按钮能弹出文件选项对话框。
如图1:
但是,、应用到自己的项目中,加载页面时直接提示出错,错误提示:
错误箭头指向:
<input id="TopicFiles" name="TopicFiles" type="hidden" autocomplete="off" />
<img UniqueID="TopicFiles" Namespace="CuteWebUI" Root="/项目1/" VerTicks="635168233318955800" FileTooLargeMsg="{0} cannot be uploaded!
File size ({1}) is too large. The maximum file size allowed is set to: {2}." MaxFilesLimitMsg="The maximum number of files allowed to be uploaded is set to {0}." WindowsDialogLimitMsg="Unable to select so many files at once. The total file name length cannot exceed 32kb." CancelUploadMsg="Cancel upload" CancelAllMsg="Cancel all Uploads" UploadingMsg="Uploading.." UploadAddonButtonMode="Auto" UploadType="Auto" UploadCursor="Auto" MultipleFilesUpload="1" ShowProgressBar="1" ShowProgressInfo="1" PanelWidth="360" BarHeight="20" InfoStyle="padding-left:3px;font:normal 12px Tahoma;" BarStyle="Continuous" BorderStyle="border:1px solid #444444;" PostBackEventReference="__doPostBack('TopicFiles','')" InsertButtonID="TopicFiles__Insert" CancelButtonID="TopicFiles__Cancel" ProgressTextID="TopicFiles__ProgressText" ProgressCtrlID="TopicFiles__Progress" MaxSizeKB="10240" Extensions="jpeg,jpg,gif,zip,doc,pdf" InsertText="Upload multiple files" InputboxCSSText="" ContextValue="!3wEWAQUyQzpcVXNlcnNceGlhb1RcQXBwRGF0YVxMb2NhbFxUZW1wXEFqYXhVcGxvYWRlclRlbXD8fulEZpbkxMD3VLReGcsXEa!3lrOTrdrg6Yc7EQAXgLQ!2!2" ServerLang="AspNet" id="TopicFilesImage" ResourceHandler="/项目1/CuteWebUI_Uploader_Resource.axd" onload="this.style.display="none" ; if(!window.CuteWebUI_AjaxUploader_Initialize){var xh=window.XMLHttpRequest?new XMLHttpRequest():new ActiveXObject('Microsoft.XMLHttp');xh.open('GET','/项目1/CuteWebUI_Uploader_Resource.axd?type=script&_ver=635168233318955800',false);xh.send('');eval(xh.responseText)}CuteWebUI_AjaxUploader_Initialize(this.id);" onerror="this.onload()" src="/项目1/CuteWebUI_Uploader_Resource.axd?type=file&file=continuous.gif" style="display:none;" />
<input type="submit" name="TopicFiles$_Insert" value="Upload multiple files" id="TopicFiles__Insert" />
<div id="TopicFiles__Progress" style="display:none;">
<span id="TopicFiles__ProgressText">Uploading...</span>
<input type="submit" name="TopicFiles$_Cancel" value="Cancel" id="TopicFiles__Cancel" />
如果点击“继续”按钮,后显示页面,点击AjaxUploader控件的"Upload multiple files"按钮没有弹出文件选项框。
如果点击“忽略”按钮,提示:
求大侠帮忙看看!
单独使用AjaxUploader作为一个项目,点击“Upload multiple files”按钮能弹出文件选项对话框。
如图1:
但是,、应用到自己的项目中,加载页面时直接提示出错,错误提示:
错误箭头指向:
<input id="TopicFiles" name="TopicFiles" type="hidden" autocomplete="off" />
<img UniqueID="TopicFiles" Namespace="CuteWebUI" Root="/项目1/" VerTicks="635168233318955800" FileTooLargeMsg="{0} cannot be uploaded!
File size ({1}) is too large. The maximum file size allowed is set to: {2}." MaxFilesLimitMsg="The maximum number of files allowed to be uploaded is set to {0}." WindowsDialogLimitMsg="Unable to select so many files at once. The total file name length cannot exceed 32kb." CancelUploadMsg="Cancel upload" CancelAllMsg="Cancel all Uploads" UploadingMsg="Uploading.." UploadAddonButtonMode="Auto" UploadType="Auto" UploadCursor="Auto" MultipleFilesUpload="1" ShowProgressBar="1" ShowProgressInfo="1" PanelWidth="360" BarHeight="20" InfoStyle="padding-left:3px;font:normal 12px Tahoma;" BarStyle="Continuous" BorderStyle="border:1px solid #444444;" PostBackEventReference="__doPostBack('TopicFiles','')" InsertButtonID="TopicFiles__Insert" CancelButtonID="TopicFiles__Cancel" ProgressTextID="TopicFiles__ProgressText" ProgressCtrlID="TopicFiles__Progress" MaxSizeKB="10240" Extensions="jpeg,jpg,gif,zip,doc,pdf" InsertText="Upload multiple files" InputboxCSSText="" ContextValue="!3wEWAQUyQzpcVXNlcnNceGlhb1RcQXBwRGF0YVxMb2NhbFxUZW1wXEFqYXhVcGxvYWRlclRlbXD8fulEZpbkxMD3VLReGcsXEa!3lrOTrdrg6Yc7EQAXgLQ!2!2" ServerLang="AspNet" id="TopicFilesImage" ResourceHandler="/项目1/CuteWebUI_Uploader_Resource.axd" onload="this.style.display="none" ; if(!window.CuteWebUI_AjaxUploader_Initialize){var xh=window.XMLHttpRequest?new XMLHttpRequest():new ActiveXObject('Microsoft.XMLHttp');xh.open('GET','/项目1/CuteWebUI_Uploader_Resource.axd?type=script&_ver=635168233318955800',false);xh.send('');eval(xh.responseText)}CuteWebUI_AjaxUploader_Initialize(this.id);" onerror="this.onload()" src="/项目1/CuteWebUI_Uploader_Resource.axd?type=file&file=continuous.gif" style="display:none;" />
<input type="submit" name="TopicFiles$_Insert" value="Upload multiple files" id="TopicFiles__Insert" />
<div id="TopicFiles__Progress" style="display:none;">
<span id="TopicFiles__ProgressText">Uploading...</span>
<input type="submit" name="TopicFiles$_Cancel" value="Cancel" id="TopicFiles__Cancel" />
如果点击“继续”按钮,后显示页面,点击AjaxUploader控件的"Upload multiple files"按钮没有弹出文件选项框。
如果点击“忽略”按钮,提示:
求大侠帮忙看看!
[注意]传递专业知识、拓宽行业人脉——看雪讲师团队等你加入!
赞赏
他的文章
看原图
赞赏
雪币:
留言: