hellow :
請教一下 ,我在工程中使用AjaxControlToolkit dll 和如下代碼 做了一個進度條
<aspanel ID="anel1" runat="server" Style="display: none" CssClass="modalPopup">
<img src="../Images/loading.gif" alt="操作进行中,请稍等... ..." style="width: 50px; height: 50px;" />
操作进行中,请稍等... ...
</aspanel>
<cc1:ModalPopupExtender ID="ModalPopupExtender1" runat="server" TargetControlID="btnUpload"
PopupControlID="anel1" BackgroundCssClass="modalBackground" BehaviorID="Behavior1">
</cc1:ModalPopupExtender>
<cc1:ModalPopupExtender ID="ModalPopupExtender2" runat="server" TargetControlID="btnImportData"
PopupControlID="anel1" BackgroundCssClass="modalBackground" BehaviorID="Behavior2">
</cc1:ModalPopupExtender>
后臺代碼
btnUpload.Attributes.Add("onclick", " var modalPopup = $find('Behavior1'); modalPopup.show(); Import(); " + ClientScript.GetPostBackEventReference(btnUpload, "") + "; return false;");
btnImportData.Attributes.Add("onclick", " var modalPopup = $find('Behavior2'); modalPopup.show(); " + ClientScript.GetPostBackEventReference(btnImportData, "") + "; return false;");
為什么在進度條完成后監聽cellchange 不起作用,監聽代碼如下:
window.onload = function () {
var spread1 = document.getElementById("fpsWebRfqDtl");
if (document.all) {
if (spread1.addEventListener) {
//IE9
spread1.addEventListener("ActiveCellChanged", cellChanged, false);
}
else {
//Other versions of IE and IE9 quirks mode (no doctype set)
spread1.onActiveCellChanged = cellChanged;
}
}
else {
// Firefox
spread1.addEventListener("ActiveCellChanged", cellChanged, false);
}
}
因upload按鈕時會顯示一個進度給用戶在沒有點擊upload時監聽起作用,在upload后就不起作用了,不知道是什么原因 |
|