c# - Textchange Event not firing in update panel with ToolkitScriptManager using asp.net -
here aspx code
<asp:toolkitscriptmanager id="toolkitscriptmanager1" runat="server"> </asp:toolkitscriptmanager>
<asp:updatepanel id="updatepanel1" runat="server" updatemode="conditional"> <contenttemplate> <asp:textbox id="txt_newpayment" runat="server" style="text-align: center" onblur="if(this.value=='')this.value=this.defaultvalue;" value="0" onfocus="if(this.value==this.defaultvalue)this.value='';" class="form-control" font-bold="true" font-size="xx-large" height="50px" ontextchanged="txt_newpayment_textchanged">0</asp:textbox> <asp:label id="label5" runat="server" text="change: " style="text-align: center; font-size: 20px; color: black" font-bold="true"></asp:label> <asp:label id="lblchange" runat="server" text="n/a" style="text-align: center; font-size: 20px; color: green" font-bold="true"></asp:label> </contenttemplate> <triggers> <asp:asyncpostbacktrigger controlid="txt_newpayment" eventname ="textchanged"/> </triggers> </asp:updatepanel>
the problem code not firing textchange event in c#
protected void txt_newpayment_textchanged(object sender, eventargs e) { }
it seems that, code looks , required tags placed update panel issue, 1 small problem autopostback="true" missed in above textbox control. add attributes textbox control surely trigger event.
hope useful,kindly share thoughts or feedbacks
thanks karthik
Comments
Post a Comment