Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/286.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 为什么我的按钮在点击后不能启动?_C#_Asp.net_Events_Dialog_Modal Dialog - Fatal编程技术网

C# 为什么我的按钮在点击后不能启动?

C# 为什么我的按钮在点击后不能启动?,c#,asp.net,events,dialog,modal-dialog,C#,Asp.net,Events,Dialog,Modal Dialog,您好,我的asp.net应用程序有一个大问题: 我的ASPX: <asp:ToolkitScriptManager ID="manager" runat="server"></asp:ToolkitScriptManager> ... <div id="GuestListViewAddDialog"> <asp:HiddenField ID="hidden_GuestListViewAddModernDialo

您好,我的asp.net应用程序有一个大问题:

我的ASPX:

<asp:ToolkitScriptManager ID="manager" runat="server"></asp:ToolkitScriptManager>

...

<div id="GuestListViewAddDialog">
                    <asp:HiddenField ID="hidden_GuestListViewAddModernDialog" runat="server" />

                    <asp:ModalPopupExtender ID="pop_GuestListViewAddModernDialog" 
                                        runat="server"
                                        CancelControlID="btn_GuestListViewAddDialog_NO" 
                                        TargetControlID="hidden_GuestListViewAddModernDialog" 
                                        PopupControlID="panel_GuestListViewAddModernDialog" 
                                        PopupDragHandleControlID="popheader_GuestListViewAddDialog" 
                                        Drag="true" 
                                        BackgroundCssClass="modalBackground"></asp:ModalPopupExtender>

                    <div id="panel_GuestListViewAddModernDialog" class="popupConfirmation" runat="server" style="width:350px; height:290px;">
                        <asp:Panel runat="server" ID="popheader_GuestListViewAddDialog" CssClass="modalPopup"><br /><b id="B1" runat="server" style="color:White;">
                        <asp:Image ID="img_GuestListViewAddDialog" ImageAlign="Left" ImageUrl="~/App_Themes/Design/Images/Form/user.png" runat="server" Width="50" Height="50" />
                        <br /><asp:Label ID="lbl_GuestListViewAddDialog" runat="server" Text="Gast Hinzufügen"></asp:Label></b><br /></asp:Panel>
                        <div class="Body">
                          <hr />
                          <div class="bodycontrol">
                            <table>
                                ...
                            </table>
                           <br />
                            <table>
                        <tr>
                            <td><asp:LinkButton ID="btn_GuestListViewAddDialog_YES" runat="server" class="GuestButtons" ValidationGroup="valid" Text="Hinzufügen" onclick="btn_GuestListViewAddDialog_YES_Click" ></asp:LinkButton></td>
                            <td><asp:LinkButton ID="btn_GuestListViewAddDialog_NO" runat="server" class="GuestButtons" Text="Abbrechen" ValidationGroup="never"></asp:LinkButton></td>
                        </tr>
                    </table>
                           <br />
                            <table>
                               ....
                           </table>
                          </div>
                          <hr />
                        </div>
                    </div>          
                </div>
我在这个事件的开始处设置了一个断点,但它没有启动-。-…我检查并将我的代码与其他现代对话框相等,但我不明白为什么这样做不起作用-。-


查看这个家伙“kudvenkat”的youtube教程。这是我在youtube上找到的唯一一个关于asp.net的好教程。

组中的验证是否有效失败?为了验证这是否是问题所在,我会暂时将
CausesValidation=“false”
放入“是”链接按钮,如果事件触发,那么您就知道存在验证问题。好的,谢谢,这是一个验证问题。我搜索问题
   protected void btn_GuestListViewAddDialog_YES_Click(object sender, EventArgs e)
            { //i set my breakpoint here but it don't start
if (Page.IsValid)
            {
    ...my code
}
    }