原本按MOQ設定會彈出畫面 |
第一次執行都是正常的,但是一經過 postback 後,又像是,變調的戀情,回不去了~~
程式架構 Master + Content + UpdatePanel1
<link href="../CSS/GrayWhiteModal.css" rel="stylesheet" type="text/css" />
<script src="../JS/jquery.min.js" type="text/javascript" ></script>
<script src="../JS/GrayWhiteModal.js" type="text/javascript" />
處理方法
1. 在 Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me
.Load
加上
ScriptManager.RegisterStartupScript(Me, Page.GetType, "Script", "initAllEvent();", True)
PS.原來是 M$ 在 postback 後清掉了所有“異已” >"<
2.在自訂的 js 檔案中,把所有要初始化的事件寫在裡面
function initAllEvent() {
$("#btnMOQ").click(function () {
SelectorDivShow("#divWhite1");
});
......
......
......
......
}
再測試一次,果然就正常了!!
Betway launches live casino games for both US and - KTNV
回覆刪除Betway 양산 출장샵 is 부천 출장마사지 now offering live casino games for both US and 전라북도 출장샵 European 서산 출장안마 players through its live casino site, the Betway mobile 계룡 출장안마 site.
kg805 fake bags op617
回覆刪除