Script(s)

what I learn is what u c

Set Cursor on first control in asp.net

leave a comment »

To set the cursor at default TEXTBox / Dropdown in Asp.net

Body onload=OnLoad()

For HTML Controls

function OnLoad() {
window.document.frmLogin.txtUser.focus();
}

For Server Side ASP.Net Controls

function OnLoad() {
document.all(‘ddlSelect’).focus();
}

Advertisements

Written by gchandra

February 6, 2006 at 4:38 pm

Posted in Web Coding

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: