Problem: textbox does not fire its TextChanged event after typing some text

asp.netdrop-down-menutextbox

I have a we form (.aspx) that has several controls such as dropdownlist, textbox(textbox1), …

The dropdownlist's autopostback is true and when I change the selected index of it, based on what index I have selected, a text is written in textbox1 and then because the autopostback of textbox1 is true, 2 other textboxes fill themselves based on the text written in textbox1.

But surprisingly, when I type some text directy in textbox1, the textchanged event of it doesn't fire.

why?

I use Asp.net 3.5, c#.

Best Answer

Do you type the text and tab out of the textbox? The postback for a textbox occurs when it loses focus. Refer remark section of TextBox.Autopostback.

Related Topic