views:

11

answers:

0

Hi,

I have an Ajax ModalPopupExtender inside a GridView with AllowPaging="true". On the first page it works fine, when you cycle through the other pages this stops working.

Can anyone point me in the right direction please?

Code as follows:

Settings for GridView:

<asp:GridView ID="gvwComments" runat="server" AllowPaging="True" 
    AutoGenerateColumns="False" CellPadding="0" CellSpacing="0" CssClass="wallGrid" 
    DataKeyNames="Response ID" DataSourceID="dsComments" GridLines="None" 
    OnRowCommand="gvwComments_RowCommand" OnRowCreated="gvwComments_RowCreated" 
    OnRowDataBound="gvwComments_RowDataBound" 
    PagerSettings-Mode="NextPreviousFirstLast" 
    PagerSettings-Position="TopAndBottom" PagerStyle-CssClass="pgr" PageSize="20">

ModalPopupExtender:

<ajax:modalpopupextender ID="mpeEditCommentExtender" runat="server" 
    PopupControlID="pnlEditComment" TargetControlID="lbtnAddPopup"  >

The panel for the modal popup has two Imagebuttons e.g.

<asp:ImageButton ID="ibtnConfirm" runat="server" ImageUrl="~/Images/btn_Confirm.jpg" 
    AlternateText="Confirm" CommandName="Confirm" />