ASP.Net 2.0 FormView - Set Focus To Control On EditItemTemplate

  • Thread starter Thread starter Dan Sikorsky
  • Start date Start date
D

Dan Sikorsky

My ASP.Net 2.0 FormView has an EditItemTemplate, an InsertItemTemplate and
an ItemTemple. When the page first loads, the ItemTemplate shows with an
Edit button. If the user clicks the Edit button, the postback loads the
EditItemTemplate, but with NO focus on any control on the EditItemTemplate.

How can I set the focus to the first textbox on the EditItemTemplate when
the page postsback?
 
Back
Top