如何使ajax modael Pop扩展器仅在打开时打开一次浏览器......... [英] How to ajax modael Pop extender open only once at open The browser.........

查看:113
本文介绍了如何使ajax modael Pop扩展器仅在打开时打开一次浏览器.........的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果单击按钮打开模型弹出扩展器,然后再次单击它,则不会打开.当浏览器打开时,模型弹出仅打开一次.


if click the button open the model pop extender and then again button click it,s not opened.model pop open only once at time when the browser open.


<form id="form1" runat="server">
    
        <asp:Button ID="imgLogin" runat="server" Text="Button" 

            onclick="imgLogin_Click" />
           
     <ajaxToolkit:ToolkitScriptManager ID="ToolkitScriptManager1"  runat="server">
        
     <div önload="amt();">
       <center>
        <ajaxToolkit:ModalPopupExtender ID="mpeChangePswdDetails"  runat="server" BackgroundCssClass="modalPopupBackground"

            BehaviorID="mpeChangePswdDetails" TargetControlID="hiddenField1" PopupControlID="pnlChangePswdDetails">
        
        <asp:HiddenField ID="hiddenField1" runat="server" />
        <asp:Panel ID="pnlChangePswdDetails" runat="server" Width="720px" Style="display: none;
            filter: alpha(opacity=100); background-color: White; z-index: 1;">
            <table width="100%" border="1" style="border-color: Silver; border-width: 10px; border-style: ridge;">
                <tr>
                    <td>
                      <asp:UpdatePanel ID="upgrdPassengerList" runat="server" UpdateMode="Conditional">
                            <contenttemplate>
                                                       <asp:Panel ID="Panel1" runat="server">
                                    <asp:Panel ID="Panel2" runat="server" Style="background-color: Red; width: 100%;
                                        cursor: move;">
                                        <table>
                                            <tr>
                                                <td align="center">
                                                    Change Password
                                                </td>
                                            </tr>
                                        </table>
                                    
                                    <table>
                                        <tr>
                                            <td>
                                                Old Password
                                            </td>
                                            <td>
                                                :
                                            </td>
                                            <td>
                                                <asp:TextBox ID="txtOldPswd" runat="server" TextMode="Password">
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                New Password
                                            </td>
                                            <td>
                                                :
                                            </td>
                                            <td>
                                                <asp:TextBox ID="txtNewPswd" runat="server">
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                Confirm Your New Password
                                            </td>
                                            <td>
                                                :
                                            </td>
                                            <td>
                                                <asp:TextBox ID="txtConNewPswd" runat="server">
                                            </td>
                                        </tr>
                                        <tr>
                                            <td colspan="3" align="center">
                                                <asp:Button ID="btnOK" runat="server" Text="OK" />
                                                <asp:Button ID="btnCancel" runat="server" Text="Clear" OnClick="btnCancel_Click"/>
                                            </td>
                                        </tr>
                                    </table>
                                
                            </contenttemplate>
                            <triggers>
                                <asp:AsyncPostBackTrigger ControlID="imgLogin" EventName="Click" />
                            </triggers>
                        
        
                    </td>
                </tr>
            </table>
        



    </center>    
    </div>
    </form>



问候

.........



regards

.........

推荐答案

使用AJAX ModalPopupExtender登录/注册屏幕 [
http://www.ajaxtutorials.com/ajax-tutorials/using-modalpopupextender-from-ajax-control-toolkit-c/[^]

Login/SignUp Screen Using AJAX ModalPopupExtender[^]


这篇关于如何使ajax modael Pop扩展器仅在打开时打开一次浏览器.........的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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