Setfocus in ASP 2.0 not working -
11-12-2007
, 09:02 PM
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 |