HighTechTalks DotNet Forums  

Setfocus in ASP 2.0 not working

ASP.net Web Controls microsoft.public.dotnet.framework.aspnet.webcontrols


Discuss Setfocus in ASP 2.0 not working in the ASP.net Web Controls forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Pizmo
 
Posts: n/a

Default 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

Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.