AJAX modalpopupextender不工作。 [英] AJAX modalpopupextender not working.

查看:82
本文介绍了AJAX modalpopupextender不工作。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的代码:



My Code:

<cc1:ModalPopupExtender ID="ModalPopupExtender1" runat="server" TargetControlID="btnShowPopup"

    PopupControlID="pnlpopup" CancelControlID="btnCancel" BackgroundCssClass="modalBackground">
</cc1:ModalPopupExtender>
<asp:Panel ID="pnlpopup" runat="server" BackColor="White" Width="400px" Style="display: none">
    <div class="inquery_area">
        <div class="inquery">
            <table style="width: 80%; margin: 0px auto;" class="table">
                <tr>
                    <td>
                        Name*
                       
                        <asp:TextBox ID="txtEnquireName" runat="server" placeholder="Type here"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        Email*
                      
                        <asp:TextBox ID="txtEnquireEmail" runat="server" placeholder="youremail@email.com"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        Mobile*
                     
                        <asp:TextBox ID="txtEnquirePhone" runat="server" placeholder="Phone or Mobile Number"

                            oncopy="return false" onpaste="return false" oncut="return false" onkeydown="return jsNumbers(event)"

                            MaxLength="10"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        Message*
                       
                        <asp:TextBox ID="txtEnquireMessage" runat="server" placeholder="Write your message"

                            TextMode="MultiLine" Height="100px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td colspan="2" align="center">
                        <asp:Button ID="btnEnquireSubmit" runat="server" Text="submit" ValidationGroup="Enquire"

                            OnClick="btnEnquireSubmit_Click" />
                        <asp:Button ID="btnCancel" runat="server" Text="Cancel" CausesValidation="false" />
                        <asp:ValidationSummary ID="ValidationSummary2" runat="server" HeaderText="There were validation on the page: "

                            ShowMessageBox="true" DisplayMode="BulletList" ShowSummary="false" ValidationGroup="Enquire" />
                        <asp:HiddenField ID="HdPropertyId" runat="server" Value="0" />
                    </td>
                </tr>
            </table>
        </div>
    </div>
</asp:Panel>













<asp:LinkButton ID="lbEnquire" runat="server" CausesValidation="False" CommandName="Enquire"

                                                               CommandArgument='<%# Eval("Property_Id") %>' Text="ENQUIRE NOW" /></li>















当我这个代码Complie然后未定义的referenceerror类型没有被定义在Sys中没有定义生成...........





请帮助我。





When I this code Complie then uncaught referenceerror type is not defined in Sys is not defined generated...........


please help me.

推荐答案

如果你想在链接按钮上打开对话框点击

采取TargateControlID ='lbEnquire'
if you want to open dialog on link button click
take TargateControlID = 'lbEnquire'


这篇关于AJAX modalpopupextender不工作。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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