<asp:ImageButton ID="IBHead" runat="server" ImageUrl="/images/cphoto.gif" OnClientClick="Create()" onclick="IBHead_Click"/> <img id="imgCreat" style="display: none;" /> function Create() { $("imgCreat").src = "ImgCropper.ashx?ph=" + ph + "&" + Math.random(); }這是我的前臺(tái)代碼,當(dāng)我點(diǎn)擊按鈕的時(shí)候,就進(jìn)入了,ImgCropper一般處理程序,但是我想讓他執(zhí)行完后條用jsimgCropper.ashx中 context.Response.ContentType = "text/html"; context.Response.Charset = "gb2313"; HttpContext.Current.Response.Write("<script>Master.parent.UpdateMsddg()</script>");但是怎么也不執(zhí)行UpdateMsddg函數(shù),另外我這個(gè)頁(yè)面是在內(nèi)容頁(yè),有母版的,是不是這個(gè)他不走了啊,我在這個(gè)方法中就寫(xiě)了alert,但是他就不走,請(qǐng)高手指點(diǎn)
2 回答

飲歌長(zhǎng)嘯
TA貢獻(xiàn)1951條經(jīng)驗(yàn) 獲得超3個(gè)贊
window.parent.UpdateMsddg這個(gè)樣子進(jìn)行調(diào)用

縹緲止盈
TA貢獻(xiàn)2041條經(jīng)驗(yàn) 獲得超4個(gè)贊
一般處理程序中:HttpContext.Current.Response.Write("Master.parent.UpdateMsddg()");
在前臺(tái)頁(yè)面中document.write(結(jié)果);
- 2 回答
- 0 關(guān)注
- 685 瀏覽
添加回答
舉報(bào)
0/150
提交
取消