Enterpreneur and Technology advocate, Founder of Hadafsoft , M.Sc. of Computer Science, Engineer, & Solutions Architect.
Follow me on twitter for quick updates: @mostafaelzoghbi
Sunday, November 12, 2006
Set Focus on Login Control Asp.net 2.0
Hi Folks,
to set focus on login control on username text box what you need to do,switch to HTML of your page and paster the folwing on form tag :
10 comments:
u have been a great sort of help.. thanks heaps..
You rock the doodle
Thanks, and how to set focus on username again when login failed?
Thanks bud. Well handy.
Great article!!!!!!!
Sorry, man this doesn't work!! Any idea?
If you would like to do it server side
Login1.FindControl("UserName").Focus();
"Login1" being the ID of the login control
Simple & Effective - much obliged.
This is great, I never realized before the cost of clicking the textboxes prior to login.
Thank you and Kumu. Your solution is great!
Post a Comment