by Lahori
31. July 2007 13:51
If you try "onchange" function with a textbox it doesn't work.
That problem is a bug at the javascript level, where the "onchange" event simply does not fire after selecting something from the autocomplete list.
You can set the autopostback to false, and add this line in InitializeComponent:
this.txtName.Attributes.Add("onblur", "__doPostBack('" + txtName.ClientID.ToString() + "', '')");
On the server side, the TextChanged event will still fire only when the text changes. The only side-effect is that the page posts back even when the textbox value stays the same.
58f7ac14-339c-46e3-a6e5-4618e0c1b4f1|0|.0
Tags: