为什么模态弹出扩展器没有显示 [英] Why modal popup extender is not showing

查看:109
本文介绍了为什么模态弹出扩展器没有显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

代码运行时没有错误,但模态弹出窗口不可见。如何使它起作用?



 <   asp:UpdatePanel     ID   =  gt    runat   =  server   < span class =code-attribute> UpdateMode   = 条件 >  
< 触发器 >
< asp:AsyncPostBackTrigger ControlID = BtnEnquirySend / >
< / Triggers >
< ContentTemplate >
< asp:按钮 ID = BtnEnquirySend runat = server 文字 = 发送 style = left:910px;顶:845px; position:absolute; OnClick = BtnSend_Click / >
< < span class =code-leadattribute> asp:Panel ID = Panel11 runat = server style = height:300px;宽度:200像素;保证金左:170像素; margin-top:400px > < / asp:面板 >
< asp:ModalPopupExtender ID = MPE runat = server

< span class =code-attribute> TargetControlID = BtnEnquirySend

PopupControlID = Panel11

BackgroundCssClass = modalBackground

DropShadow = true

OkControlID = OkButton

OnOkScript = onOk()

CancelControlID = CancelButton

PopupDragHandleControlID = Panel11 >
< / asp:ModalPopupExtender >
< / ContentTemplate >
< / asp:UpdatePanel >





  protected   void  BtnSend_Click( object  sender,EventArgs e)
{
MPE 。节目();
}

解决方案

试试这个:

< asp:UpdatePanel ID =   gt runat =   server UpdateMode =  条件> 
<触发器>
< asp:AsyncPostBackTrigger ControlID = BtnEnquirySend />
< /触发器>
< ContentTemplate>
< asp:按钮ID = BtnEnquirySend runat = server Text = 发送 style = left:910px; top:845px; position:absolute; OnClick = BtnSend_Click />
< asp:Panel ID = Panel11 runat = server style = 高度:300px;宽度:200px;左边距:170px;边距顶部:400px>
< asp:标签ID = Label3 runat = server Text = 检查>< / ASP:标签>
// 包含的标签用于检查
< / asp:Panel>
< asp:ModalPopupExtender ID = MPE runat = server
TargetControlID = BtnEnquirySend
PopupControlID = Panel11
BackgroundCssClass = modalBackground
DropShadow = true>
< / asp:ModalPopupExtender>
< / ContentTemplate>
< / asp:UpdatePanel>





面板没有值。这就是为什么它看起来没有显示。


The code runs without error but modal popup is not visible. How to make it function?

<asp:UpdatePanel ID="gt" runat="server" UpdateMode="Conditional">
    <Triggers>
    <asp:AsyncPostBackTrigger ControlID="BtnEnquirySend" />
    </Triggers>
    <ContentTemplate>
    <asp:Button ID="BtnEnquirySend" runat="server"  Text="Send" style=" left:910px; top:845px; position:absolute;" OnClick="BtnSend_Click"  />
    <asp:Panel ID="Panel11" runat="server" style=" height:300px; width:200px; margin-left:170px; margin-top:400px"></asp:Panel>
    <asp:ModalPopupExtender ID="MPE" runat="server"

    TargetControlID="BtnEnquirySend"

    PopupControlID="Panel11"

    BackgroundCssClass="modalBackground"

    DropShadow="true"

    OkControlID="OkButton"

    OnOkScript="onOk()"

    CancelControlID="CancelButton"

    PopupDragHandleControlID="Panel11" >
    </asp:ModalPopupExtender>
    </ContentTemplate>
    </asp:UpdatePanel>



protected void BtnSend_Click(object sender, EventArgs e)
    {
        MPE.Show();
    }

解决方案

Try this:

   <asp:UpdatePanel ID="gt" runat="server" UpdateMode="Conditional">
    <Triggers>
    <asp:AsyncPostBackTrigger ControlID="BtnEnquirySend" />
    </Triggers>
    <ContentTemplate>
    <asp:Button ID="BtnEnquirySend" runat="server"  Text="Send" style=" left:910px; top:845px; position:absolute;" OnClick="BtnSend_Click"  />
    <asp:Panel ID="Panel11" runat="server" style=" height:300px; width:200px; margin-left:170px; margin-top:400px">
        <asp:Label ID="Label3" runat="server" Text="Check"></asp:Label>
//label included to check
    </asp:Panel>      
    <asp:ModalPopupExtender ID="MPE" runat="server"
    TargetControlID="BtnEnquirySend"
    PopupControlID="Panel11"
    BackgroundCssClass="modalBackground"
    DropShadow="true">
    </asp:ModalPopupExtender>
    </ContentTemplate>
    </asp:UpdatePanel>



The panel has no values.That's why it looks like not showing.


这篇关于为什么模态弹出扩展器没有显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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