Setfocus in ASP 2.0 not working

P

Pizmo

I have a contact.aspx page that is built with the wizard. It contains four
pages, Contact Info, Comments, Summary and Complete. Everything works great
only I cannot set the focus on any of the pages. I have tried
defaultfocus="txtName" in the body tag, and the following in code-behind:

Protected Sub Page_Load(ByVal sender As Object, _
ByVal e As System.EventArgs)
If Not Page.IsPostBack Then
SetFocus(txtName)
End If

End Sub

Any help setting the focus on two of the pages would be greatly appreciated.

TIA
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,756
Messages
2,569,535
Members
45,008
Latest member
obedient dusk

Latest Threads

Top