This is a migrated thread and some comments may be shown as answers.

set focus to the RadTextBox

1 Answer 64 Views
Input
This is a migrated thread and some comments may be shown as answers.
Sigma
Top achievements
Rank 1
Sigma asked on 12 Feb 2013, 05:34 AM
hi,

How to set focus to the RadTextBox when the page is loaded?

Sigma.

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 12 Feb 2013, 06:05 AM
Hi Sigma,

Try the following C# code to set focus to the RadTextbox when the page is loaded.

C#:
protected void Page_Load(object sender, EventArgs e)
{
    RadTextBox1.Focus();
}

Thanks,
Princy.
Tags
Input
Asked by
Sigma
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or