This has got me completely confused... not sure if I've been at it too long and am missing something, or if this is a bug?
I have a webform with an AJAX update panel. In the panel there are 2 controls. One is a textbox, the other a listview.
I'm using the ClientScriptManager to take advantage of the "OnKeyUp" event to cause an autopostback.
When text is entered into the textbox, it runs the textchanged event, which puts data in the listview.
So far so good. All works fine with one exception.
Problem is that with IE8 the textbox loses focus on the SECOND text entry, even though it's specified in my code to focus on textbox after the textchanged event fires. And with Firefox, it doesn't cause the textchanged event to fire at all.
I don't get it??
Here's my code...
Sub Page_load(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Load
TextBox1.Attributes.Add("onKeyUp", Page.ClientScript.GetPostBackEventReference(TextBox1, ""))
Sub TextBox1_TextChanged(ByVal sender As Object, ByVal e As EventArgs) Handles TextBox1.TextChanged
Listbox1.Items.Add(New ListItem("ListboxItem", "ListboxValue"))
TextBox1.Text = ""
View Complete Post