2009-09-24 92 views
0

我有一个modalpopupExtender,当点击编辑按钮时打开。在那里我有一个gridview,其中如果单击任何一行弹出隐藏和值显示在页面上。问题是当我在更新面板中保留此代码时,modalpopupextender在gridview中单击后没有隐藏。我在我的页面中有一个母版页并使用Ajax模式弹出式扩展程序MOdalPopupExtender更新面板隐藏问题

回答

0

我看到了同样的行为, modelpopup更新面板之前,它的工作方式

<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager> 
<cc1:ModalPopupExtender ID="mpeScreenFreez" 
         runat="server" 
         BackgroundCssClass="modalBackground" 
         DropShadow="true" 
         TargetControlID="btnDummy" 
         PopupControlID="panFreeze"> 
</cc1:ModalPopupExtender> 

<asp:Panel ID="panFreeze" runat="server" CssClass="modalPopup" style="display:none;"> 
    <asp:Label ID="lblSave" runat="server" Font-Bold="true" Text="Sending the Quote...."> 
    </asp:Label>           
</asp:Panel> 
<asp:Button ID="btnDummy" runat="server" CssClass="hidden" /> 
<asp:UpdatePanel ID="upDirectHomOwnrPremQuote" runat="server"> 
    <ContentTemplate></ContentTemplate> 
0

你正在做一个完整的回发?如果是这样,在Click事件中为什么不使用ModalPopup.Hide()?