asp.net - AsyncPostBackTrigger in nested repeater -


good day everyone,

this first post in here , thank great efforts in forum have gaind lot of skills.

i have smalle issue 2 nested repeaters. basically, have dropdownlist in child repeater contains rating values , every time dropdownlist changed in child repeater new percentange calculated , presented in label in parent repeater. cause full postback frustrating when going through many dropdownlists. question how reflect new calculated percentange in label without postback. have tried use asyncpostbacktriggers no luck. suggestions appreiciated

<asp:repeater id="rptparent" runat="server"> <itemtemplate> <asp:label id="lblavg" runat="server" text='<%# eval("trialscore")%>'></asp:label> <asp:repeater id="rptchild" runat="server"> <itemtemplate> <asp:dropdownlist id="lstrate" runat="server" onselectedindexchanged="lstrate_selectedindexchanged" />  </itemtemplate> </asp:repeater> </itemtemplate> </asp:repeater> 

wrap aspx mark inside update panel this.

<asp:updatepanel runat="sever" id="upparentchild" >     <contenttemplate>         <asp:repeater id="rptparent" runat="server">             <itemtemplate>                 <asp:label id="lblavg" runat="server" text='<%# eval("trialscore")%>'></asp:label>                 <asp:repeater id="rptchild" runat="server">                     <itemtemplate>                         <asp:dropdownlist id="lstrate" runat="server" onselectedindexchanged="lstrate_selectedindexchanged" />                     </itemtemplate>                 </asp:repeater>             </itemtemplate>         </asp:repeater>     </contenttemplate>         </asp:updatepanel> 

this make sure controls inside update panel posted , not whole page.


Comments

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -