0
<dx:PopupControlContentControl ID="PopupControlContentControl1" runat="server">
     <dx:ASPxPanel ID="Panel1" runat="server"
         <dx:ASPxGridView ID="PopUpGrid" runat="server" AutoGenerateColumns="False" CssFilePath="~/App_Themes/DevEx/{0}/styles.css"
               CssPostfix="DevEx" DataSourceID="CustomerBilgi" KeyFieldName="ID" ClientInstanceName="PopUpGrid">
                   <Columns>
                        <dx:GridViewCommandColumn VisibleIndex="0">
                        <ClearFilterButton Visible="true" />
                        </dx:GridViewCommandColumn>
                        <dx:GridViewDataTextColumn FieldName="ID" VisibleIndex="1" />
                        <dx:GridViewDataTextColumn FieldName="CODE" VisibleIndex="2" />
                        <dx:GridViewDataTextColumn FieldName="NAME" VisibleIndex="3" />
                        <dx:GridViewDataTextColumn FieldName="CREATE_DATE" VisibleIndex="4" />
                        </Columns>
                        <Settings ShowFilterRow="true" />
                        <SettingsBehavior AllowFocusedRow="true" />
                        <SettingsBehavior AllowSelectByRowClick="true" />
            </dx:ASPxGridView>
                  <tr>
                     <td>
                          <dx:ASPxButton ID="ButtonPopUp" Text="Ok" runat="server" OnClick="ButtonPopUp_Click"
                                                Width="200px" AutoPostBack="true">
                          </dx:ASPxButton>
                     </td>
                  </tr>
             <asp:EntityDataSource ID="CustomerBilgi" runat="server" ConnectionString="name=IntranETEntities"
                                        DefaultContainerName="IntranETEntities" EnableFlattening="False"
                                        EntitySetName="CUSTOMERs" EntityTypeFilter="CUSTOMER" Select="it.[ID],it.[CODE], it.[NAME], it.[CREATE_DATE]">
                                    </asp:EntityDataSource> ....
        </dx:PopupControlContentControl>

在弹出窗口中,我有 Grid 和一个按钮。在服务器端,按钮存在以下事件

 protected void ButtonPopUp_Click(object sender, EventArgs e)
    {   ....  }

当我调试代码时,我发现偶数没有被触发。有什么我做错了吗?我该如何解决?我正在使用 EntityFramework 和 Devexpress。感谢您的回复!!

4

0 回答 0