看不到我的弹出窗口


                    

我给出了使用AJAX进行模式弹出的代码。 问题是当我单击按钮时,弹出窗口没有显示,而是仅闪烁一次。 看我的代码,告诉我它是什么问题。</ p>

  
</ asp:ScriptManager>
    登录</ asp:LinkBut​​ton>
   
    
        
             
            
            
用户名</ td>
             
</ asp:TextBox> </ td>
         </ tr>
        
密码</ td>
            
</ asp:TextBox> </ td>
         </ tr>
        
</ td>
            
</ td>
         </ tr>
     </ table>
</ asp:面板>
                            TargetControlID =“ LinkBut​​ton1”
                            PopupControlID =“ Panel1”
                            OkControlID =“ Button1”
                            CancelControlID =“ Button1”
                            BackgroundCssClass =“ modepop”>
</ ajaxTK:ModalPopupExtender>
</ code> </ pre>
     </ div>

展开原文

原文

I given my coding for a modal popup using AJAX. The problem is when I click the button, the popup is not displaying instead, it is just blinking once. Look at my code and tell me what is the problem with it.

<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
   <asp:LinkButton ID="LinkButton1" runat="server">Login</asp:LinkButton>
   <asp:Panel ID="Panel1" runat="server" Width="241px" Style="display:none" >
    <table style="border-style: inherit; border-width: thin; width:100%;">
        <tr>
             <td class="style2">Username</td>
             <td><asp:TextBox ID="TextBox1" runat="server"></asp:TextBox></td>
        </tr>
        <tr>
            <td class="style3">Password</td>
            <td class="style1"><asp:TextBox ID="TextBox2" runat="server"></asp:TextBox></td>
        </tr>
        <tr>
            <td class="style2"><asp:Button ID="Button1" runat="server" Text="Signin" />               </td>
            <td><asp:Button ID="Button2" runat="server" Text="Cancel" /></td>
        </tr>
    </table>
</asp:Panel>
<ajaxTK:ModalPopupExtender ID="ModalPopupExtender" runat="server" 
                           TargetControlID="LinkButton1"
                           PopupControlID="Panel1" 
                           OkControlID="Button1" 
                           CancelControlID="Button1"
                           BackgroundCssClass="modepop">
</ajaxTK:ModalPopupExtender>

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问
相关内容推荐