日期:2014-05-16  浏览次数:20771 次

上传控件AjaxUploader用到项目中出错,语法错误
本帖最后由 degaoyang 于 2013-10-09 11:33:32 编辑
环境: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(&#39;TopicFiles&#39;,&#39;&#39;)" 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=&quot;none&quot; ; if(!window.CuteWebUI_AjaxUploader_Initialize){var xh=window.XMLHttpRequest?new XMLHttpRequest():new ActiveXObject(&#39;Microsoft.XMLHttp&#39;);xh.open(&#39;GET&#39;,&#39;/项目1/CuteWebUI_Uploader_Resource.axd?type=script&amp;_ver=635168233318955800&#39;,false);xh.send(&#39;&#39;);eval(xh.responseText)}CuteWebUI_AjaxUploader_Initialize(this.id);" onerror="this.onload()" src="/项目1/CuteWebUI_Uploader_Resource.axd?type=file&amp;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控件 对话框 Microsoft?JScript 语法错误