[問題] 請問各位有關ajax的問題
各位版大
我現在要做對一個button做modalPopupExtender
在執行中不能對任何的control進行點擊的動作
以下是部分程式碼
<asp:Button ID="Button3" runat="server" onclick="Button3_Click"
OnClientClick="modalPopup()" Text="儲存" Visible="true" />
<asp:Panel ID="Panel1" style="display:none" Height="50px"
Width="250px" runat="server">
<img src="loading.jpg" /><br />
資料處理中.....
</asp:Panel>
<cc1:ModalPopupExtender ID="Button3_ModalPopupExtender" runat="server"
DynamicServicePath="" PopupControlID="Panel1" TargetControlID="Button3"
BackgroundCssClass="modalBackground" Enabled="True" Drag="True"
DropShadow="false">
</cc1:ModalPopupExtender>
<script type="text/javascript">
function modalPopup() {
var m = document.getElementById('<% =Button3.ClientID%>');
m.click();
}
</script>
寫完之後效果有出來,但是它沒有辦法去觸發button3_click
導致我要的功能沒有辦法出來,請問一下這有辦法解決嗎??
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.123.175.223
→
12/30 12:35, , 1F
12/30 12:35, 1F
→
12/30 12:35, , 2F
12/30 12:35, 2F
→
12/30 12:36, , 3F
12/30 12:36, 3F
→
12/30 13:44, , 4F
12/30 13:44, 4F
→
12/30 13:44, , 5F
12/30 13:44, 5F
推
12/30 14:47, , 6F
12/30 14:47, 6F
→
12/30 14:48, , 7F
12/30 14:48, 7F
→
12/30 14:48, , 8F
12/30 14:48, 8F
推
12/30 14:52, , 9F
12/30 14:52, 9F
→
12/30 14:52, , 10F
12/30 14:52, 10F
→
12/30 14:53, , 11F
12/30 14:53, 11F
C_Sharp 近期熱門文章
PTT數位生活區 即時熱門文章