![]() |
setting focus to textbox
Hello,
Can someone tell me if/how I can set the focus to a textbox so when the page loads the cursor is placed in the textbox and the user can just begin typing? Thanks. Pip |
Re: setting focus to textbox
Hi Tony,
Its pretty simple, you just need to output some javascript from the server-side to set the focus to the control you want, take a look at javascript's focus function. If I remember right, ScottGu[1] has posted a ppt with some tricks & tips (including the focus one). [1] http://weblogs.asp.net/scottgu -- Victor Garcia Aprea Microsoft MVP | ASP.NET Looking for insights on ASP.NET? Read my blog: http://obies.com/vga/blog.aspx To contact me remove 'NOSPAM'. Please post all questions to the newsgroup and not by private mail. "Tony Piperato" <tonypiperato@hotmail.com> wrote in message news:u%23QwMXZmDHA.1948@TK2MSFTNGP12.phx.gbl... > Hello, > > Can someone tell me if/how I can set the focus to a textbox so when the page > loads the cursor is placed in the textbox and the user can just begin > typing? > > Thanks. > > Pip > > |
| All times are GMT. The time now is 08:52 AM. |
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.