Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net (http://www.velocityreviews.com/forums/f29-asp-net.html)
-   -   2.0 Login control with cursor focus on Username (http://www.velocityreviews.com/forums/t116898-2-0-login-control-with-cursor-focus-on-username.html)

David R. 01-08-2006 07:06 AM

2.0 Login control with cursor focus on Username
 
Using <asp:Login ID="Login1" runat="server">

Is it possible to set the initial cursor focus on the Username text field
when the page initially loads?



Christopher Reed 01-08-2006 02:15 PM

Re: 2.0 Login control with cursor focus on Username
 
In your Page_Load method, use

Login1.Focus()

or

SetFocus(Login1)

--
Christopher A. Reed
"The oxen are slow, but the earth is patient."

"David R." <davidrnoreply@nospam.com> wrote in message
news:ObS16HCFGHA.3168@TK2MSFTNGP15.phx.gbl...
> Using <asp:Login ID="Login1" runat="server">
>
> Is it possible to set the initial cursor focus on the Username text field
> when the page initially loads?
>





All times are GMT. The time now is 10:41 AM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57