asp.net - UpdateProgress not showing when doPostBack is manually called from javascript -


i using update panel , update progress control. in update panel have textbox textchange event. event automatically called javascript when user enters 10 digits textbox. call :

__dopostback("labeltextboxcode", "textchanged"); 

this html code :

    <asp:scriptmanager id="scriptmanager1" runat="server">         </asp:scriptmanager>         <asp:updateprogress runat="server" id="updateprogress1" associatedupdatepanelid="updatepanel">             <progresstemplate>                 ...processing             </progresstemplate>         </asp:updateprogress>         <asp:updatepanel id="updatepanel" runat="server" updatemode="conditional">             <contenttemplate>  <asp:textbox id="labeltextboxcode" runat="server" ontextchanged="textchanged_textboxcode">                         </asp:textbox>     ...   </contenttemplate>     </asp:updatepanel> 

so far found thread updateprogress not working when called thru javascript not me (i not know how use right in case).

when press button in update panel, progress bar showing, problem manually called __dopostback javascript.

how fix , make updateprogress works ?

directly calling __dopostback bypasses triggers set update panel in action. avoid can either call onbeginrequest handler or can trigger same button click instead of calling __dopostback. trigger button click can make use of jquery trigger function. can example here.

hope helps.


Comments

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

angularjs - ng-repeat duplicating items after page reload -