回发发生时关闭ModalPopUpExtender [英] Close ModalPopUpExtender when postback occur

查看:90
本文介绍了回发发生时关闭ModalPopUpExtender的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有ModalPopupExtender,其中包含任何按钮,当此模式隐藏时,会发生任何回发.

I have ModalPopupExtender that contain buttons when any post-back occur into this modal it hides.

<cc1:ModalPopupExtender id="mod1"  runat="server" TargetContrlId="button1"

PopUpControlID="panel1" okControlID="btnOK">

<asp:Panel id="panel1" runat="server">
<asp:button id="button1" ....

<table>
<tr>
<td>
<asp:Buttom id="btnOK" runat ...

here is another button do post-pack to fill gridview into this panel

</td>
</tr>
</table>



感谢所有



Thanks all

推荐答案

将此代码写在page_Load外部
IsPostback

Write this code in the page_Load outside
IsPostback

mod1.Show(); 


> <>&<a href=""></a><a href=""></a>[<a href="" target="_blank"></a>]<pre lang="c#"><pre lang="c#"><big><big><big><big><big><big><big><big><big><big><big><big><big><small><small><small><small><small><small></small></small></small></small></small></small></big></big></big></big></big><<b>/big></big></big></big></big></big></big></big></big></pre></pre>
<>&<a href=""></a><a href=""></a>[<a href="" target="_blank"></a>]<pre lang="c#"><pre lang="c#"><big><big><big><big><big><big><big><big><big><big><big><big><big><small><small><small><small><small><small></small></small></small></small></small></small></big></big></big></big></big><<b>/big></big></big></big></big></big></big></big></big></pre></pre>


这篇关于回发发生时关闭ModalPopUpExtender的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆