I am trying to set the focus to a text box in a panel with a CollapsiblePanelExtender. I am using the following in the code-behind (TextChanged event):
Dim ctrl As Control = Helper.FindControl("tbQtyCurrent")
Dim sm As ScriptManager = Helper.FindControl("scriptManager1")
If ((Not (sm) Is Nothing) And (Not (ctrl) Is Nothing)) Then
sm.SetFocus(ctrl)
End If '((Not (sm) Is Nothing) And (Not (ctrl) Is Nothing))
When debugging, we hit the sm.setfocus(ctrl) line, but it does not actually set the focus. In fact, nothing has the focus.
There are no page events settings focus, so I don't know what else to try!!
Can anyone who knows AJAX help me out?