Nested UpdatePanel

1 posts, 0 answers
  1. rod
    rod avatar
    10 posts
    Member since:
    Nov 2006

    Posted 29 Jul 2009 Link to this post


    I´m trying to do something like this:
    I have a masterpage and content page. In the content page I have a RadAjaxPanel, inside of it a Repeater and for each Itemtemplate a buttom that on a click sends information to a usercontrol. On this usercontrol I have a Delete Button that removes the item form the DB and re-bind the repeater. 

    I was using reflection to re-bind:
    MethodInfo mi = this.Page.GetType().GetMethod("DataBindControle", BindingFlags.Public | BindingFlags.Instance); 
                mi.Invoke(this.Page, new Object[] { 0 }); 

    However, now I placed the usercontrol inside a UpdatePanel and the method above is not working. Does anybody have an idea on how I can achieve this?

    This is the itemtemplate on the content page:

                                            <asp:UpdatePanel UpdateMode="Conditional" ID="UpdTeste" runat="server" RenderMode="Inline"
                                                    <asp:Panel id="pnlInfo" runat="server" style="padding: 4px 0px 4px 0px; height: 18px; vertical-align: middle;"
                                                        <div class="info_row" style="padding: 0px 0px 0px 10px; width: 20px; vertical-align: middle; text-transform: uppercase;"><asp:ImageButton ID="imgDetails" runat="server" ImageUrl="~/images/btn_detail.gif" CommandName="Edit" CommandArgument='<%# Eval("controle_id") %>' style="cursor: pointer;" /></div
                                                        <div class="info_row" style="padding: 4px 0px 4px 0px; width: 130px; vertical-align: middle; text-transform: uppercase;"><b><%# Eval("controledata")%></b></div> 
                                                        <div class="info_row" style="padding: 4px 0px 4px 0px; width: 220px; vertical-align: middle; text-transform: uppercase;"><b><%# Eval("controledescricao_nome")%></b></div> 
                                                        <div class="info_row" style="padding: 4px 0px 4px 0px; width: 100px; vertical-align: middle; text-transform: uppercase;"><b><%# Eval("controle_horainicio")%></b></div> 
                                                        <div class="info_row" style="padding: 4px 0px 4px 0px; width: 100px; vertical-align: middle; text-transform: uppercase;"><b><%# Eval("controle_horafinal") %></b></div> 
                                                        <div class="info_row" style="padding: 4px 0px 4px 0px; width: 240px; vertical-align: middle; text-transform: uppercase;"><b><%# Eval("advogado_nome") %></b></div> 
                                                    <div class="table_footer"/> 
                                                    <ControleControl:ControleControl ID="ctlDetail" Value="0" runat="server" Visible="false" /> 

    Around it there is the RadAjaxPanel.

    Thanks in advance.

Back to Top