2014-04-01 135 views
1

我的頁面沒有顯示

<cc1:ModalPopupExtender ID="ModalPopupConfirm" runat="server" 
         TargetControlID="Button4" 
         PopupControlID="pnlPopup" 
         BackgroundCssClass="ModalPoopup" 
         BehaviorID="popup" /> 

<cc1:ModalPopupExtender ID="ModalPopupExtender1" runat="server" 
         TargetControlID="anchorbtn" 
         X="200" RepositionMode="None" 
         PopupDragHandleControlID="EmptyPanel" 
         PopupControlID="pnlSelfOrLetOut" 
         BackgroundCssClass="ModalPoopup" 
         BehaviorID="popupSL" /> 

兩個模式彈出擴展和我打電話在C#中第一模式彈出擴展像

ModalPopupExtender1.Show(); 

模式彈出模式彈出擴展沒有顯示這一點。

請幫幫我。

+0

請張貼的所有相關信息(比如anchorbtn,EmptyPanel,pnlSelfOrLetOut,ModalPoopup CSS,popupSL)和CS代碼從那裏'ModalPopupExtender1.Show();'呼喚... – pravprab

+0

有你打了這個Show()調用? – adripanico

回答

0
<asp:HiddenField ID="hidForModel" runat="server" /> 

<cc1:ModalPopupExtender ID="ModalPopupConfirm" runat="server" TargetControlID="hidForModel" 
PopupControlID="pnlPopup" BackgroundCssClass="ModalPoopup" BehaviorID="popup"> 
</cc1:ModalPopupExtender> 

試試這個

+0

感謝您的解決方案,但我已經使用頁面上的腳本管理器。給出另一種解決方案。 – user3118774

+0

嘗試更新的代碼 – Jegadeesh

+0

爲您的頁面添加隱藏字段。使ModalPopup TargetControlID成爲隱藏字段ID – Jegadeesh