0
㈣嘗試了很多東西(JS/jQuery的)來禁用此AsyncFileUpload但都不是工作...請指教..爲什麼不能我禁用ajaxToolkit:AsyncFileUpload
<ajaxToolkit:AsyncFileUpload OnClientUploadError="uploadError"
OnClientUploadComplete="ajaxUploadImage_ClientUploadComplete" runat="server"
ID="ajaxUploadImage" Width="400px" UploaderStyle="Modern"
CompleteBackColor = "White"
UploadingBackColor="#CCFFFF" ThrobberID="imgLoader"
OnUploadedComplete = "ajaxUploadImage_OnUploadComplete"
OnClientUploadStarted="AssemblyFileUpload_Started"
/>
var upload = $$('ajaxUploadImage');
upload.enableSelection('false');
var upload = $$('ajaxUploadImage');
upload.enableSelection('false');
upload.disableSelection();
document.getElementById("ctl00_MainContent_MapUserControl_ajaxUploadImage").disabled = true;
所以......四嘗試使用ID分配給我..iv嘗試使用在瀏覽器中分配的ID ....我做錯了什麼?用戶還可以單擊文本框或選擇按鈕和文件夾彈出的圖片,讓用戶選擇要上傳的圖像
應該注意到,iv,也試圖從代碼中禁用它背後
ajaxUploadImage.Enabled = false;
也嘗試在控件中設置disabled =「true」,並檢查開發者工具中的控件是否被禁用,但我仍然可以單擊文本框或按鈕並打開圖片文件夾