asp.net - Ontext Changed event not firing for TextBox -


i have textbox beside have search button. on click of search button, pops page user selects value , value automatically populated in textbox beside search button. now, based on value automatically populated in textbox, there other dynamic controls populated on page.

i using textbox.textchanged event , calling method populates other dynamic controls.

however, ontextbox_changed event firing when press tab key or enter key textbox want fire once text populated.

below aspx

<asp:textbox id="txtgl1" runat="server" text="" autopostback="true"  enabled="true" enableviewstate="true" ontextchanged="txtgl1_textchanged"> </asp:textbox>  protected void txtglaccount_textchanged(object sender, eventargs e) {     createcontrols(); } 

text change event works only.

the textchanged event raised when content of text box changes between posts server.

more details on msdn. if want on type need use keypress / keydown / keyup javascript events.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -