none
怎么编译AJAX源代码可以是AjaxFileUpload 控件能显示中文 RRS feed

  • 问题

  • 怎么编译AJAX源代码可以是AjaxFileUpload 控件能显示中文  修改资源文件后  AjaxFileUpload  总是无法使用   AjaxControlToolkit.VS2008 (3.5.7.607)   AJAX源代码怎么重新生成DLL文件呢? 需要几个步骤才能生成一个可以用的DLL文件呢

    自己下载 最新的源码 重新生成后 上传控件就变成这个样子了

    • 已编辑 峪儿 2013年7月11日 6:31
    2013年7月10日 9:43

答案

  • 不用非要重新生成dll文件,你可以直接在网页中修改这个控件中的任何资源。给你一段代码示例:

            <style type="text/css">
    /* Buttons widths */
    .ajax__fileupload_fileItemInfo div.removeButton{width:100px;}
    div.ajax__fileupload_uploadbutton{width:120px;}
    .ajax__fileupload .ajax__fileupload_selectFileContainer{width: 110px;}
    .ajax__fileupload_selectFileContainer .ajax__fileupload_selectFileButton{width: 110px;}
    </style>
     <script type="text/javascript">
         //run AjaxFileUpload_change_text() function after page load
         //that example uses  jquery
         
       window.onload=function AjaxFileUpload_change_text() {
             //Here you can write whatever you want = "..."
             Sys.Extended.UI.Resources.AjaxFileUpload_SelectFile = "选择文件";
             Sys.Extended.UI.Resources.AjaxFileUpload_DropFiles = "Drop files here";
             Sys.Extended.UI.Resources.AjaxFileUpload_Pending = "pending";
             Sys.Extended.UI.Resources.AjaxFileUpload_Remove = "Remove";
             Sys.Extended.UI.Resources.AjaxFileUpload_Upload = "Upload";
             Sys.Extended.UI.Resources.AjaxFileUpload_Uploaded = "Uploaded";
             Sys.Extended.UI.Resources.AjaxFileUpload_UploadedPercentage = "uploaded {0} %";
             Sys.Extended.UI.Resources.AjaxFileUpload_Uploading = "Uploading";
             Sys.Extended.UI.Resources.AjaxFileUpload_FileInQueue = "{0} file(s) in queue.";
             Sys.Extended.UI.Resources.AjaxFileUpload_AllFilesUploaded = "All Files Uploaded.";
             Sys.Extended.UI.Resources.AjaxFileUpload_FileList = "List of Uploaded files:";
             Sys.Extended.UI.Resources.AjaxFileUpload_SelectFileToUpload = "Please select file(s) to upload.";
             Sys.Extended.UI.Resources.AjaxFileUpload_Cancelling = "Cancelling...";
             Sys.Extended.UI.Resources.AjaxFileUpload_UploadError = "An Error occured during file upload.";
             Sys.Extended.UI.Resources.AjaxFileUpload_CancellingUpload = "Cancelling upload...";
             Sys.Extended.UI.Resources.AjaxFileUpload_UploadingInputFile = "Uploading file: {0}.";
             Sys.Extended.UI.Resources.AjaxFileUpload_Cancel = "Cancel";
             Sys.Extended.UI.Resources.AjaxFileUpload_Canceled = "cancelled";
             Sys.Extended.UI.Resources.AjaxFileUpload_UploadCanceled = "File upload cancelled";
             Sys.Extended.UI.Resources.AjaxFileUpload_DefaultError = "File upload error";
             Sys.Extended.UI.Resources.AjaxFileUpload_UploadingHtml5File = "Uploading file: {0} of size {1} bytes.";
             Sys.Extended.UI.Resources.AjaxFileUpload_error = "error";
         }
    </script>
    放在你的页面中,尝试一下!

    希望对你有帮助


    2013年7月12日 5:47
    版主