Updated: 03/19/2008

Programmatically setting the focus on control

Using Code Behind (aka code, regardless of where it is situated) you can write your pages to display the blinking cursor (focus) on a particular web control. This improves the usability of your forms for end users. Copy the code example shown in Code Field 1 and paste this data into your Page_Load subroutine...