有没有办法从 ajaxFileupload 示例中更改文本按钮:“选择文件”“删除”“待处理”“上传”“上传”
将这些文本更改为自定义文本?我正在使用 asp.net c# 和最后一个 ajaxtoolkit 库,任何想法都会有所帮助。先感谢您。
有没有办法从 ajaxFileupload 示例中更改文本按钮:“选择文件”“删除”“待处理”“上传”“上传”
将这些文本更改为自定义文本?我正在使用 asp.net c# 和最后一个 ajaxtoolkit 库,任何想法都会有所帮助。先感谢您。
尝试以下,AjaxFileUpload_change_text()
页面加载后运行功能(即 on Document.ready
)。这里已经使用了jQuery。
<script type="text/javascript">
$(document).ready(function () {
AjaxFileUpload_change_text();
});
function AjaxFileUpload_change_text() {
Sys.Extended.UI.Resources.AjaxFileUpload_SelectFile = "Select File";
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>