Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > cursor on first control

Thread Tools

cursor on first control

Rolf Brockmann
Posts: n/a
I want to set the focus to an special Textbox when the website is selected.
how can I do this.
I am useing C# - ASP.NET
best regards
Rolf Brockmann
Reply With Quote
Posts: n/a
>I want to set the focus to an special Textbox when the website is selected.
> how can I do this.

This is clientside, not asp. However
Do not try the often used <body onload="document.myform.txt1.focus()">
If the (slow connection) user has started filling forms before a full page
load, the focus will suddenly go back to the start when loading is finished,
in the middle of typing.
Immediately after the <input> in question, you can place a client-side
script block setting the focus.
Be aware that some browsers and doctypes do not handle randomly placed
script blocks very well. You might use asp to offer this little luxury only
to platforms that you know are OK with it.

Reply With Quote

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to tell if cursor is sqlite.Cursor or psycopg2.Cursor dmaziuk Python 3 01-25-2011 04:52 AM
Declare Cursor error while implementing SCROLL CURSOR invy C Programming 4 12-28-2006 02:35 PM
Set the cursor on the first control in the web form Felix_WafyTech ASP .Net 2 02-22-2006 03:18 AM
Changing DEFAULT cursor to WAIT cursor in ASP =?Utf-8?B?VG9tYXMgS2VwaWM=?= ASP .Net 1 04-05-2005 07:42 PM
Set cursor in first text box and set button as default SibAndela ASP General 1 09-26-2004 06:31 PM