Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Setting Focus in a Ajax Tab

Status
Not open for further replies.

dvannoy

MIS
May 4, 2001
2,765
US
I'm trying to set focus on a textbox that's on an Ajax Tab Panel. I can find the control with code but can't get the focus to work.

I've tried a few different ways...

Dim myt As System.Web.UI.WebControls.TextBox = CType(tc1.Tabs(0).FindControl("t1"), TextBox)
myt.Focus()

tc1.Tabs(0).FindControl("t1").Focus()

I get no errors, but the focus never happens

Thanks in advance if you can help....

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top