|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Setting control focus on roundtripHi,
I have a number of TextBox'es and do AutoPostBack of the form for every text box that the user leave (to handle data along the way). However, the tab order is broken for every postback, and the tab order starts from the beginning on every load of the page. Is there a way in ASP.NET 1.1 to, from the CodeBehind page, set focus to whatever TextBox I like? Thanks, Inge Here's how you set the focus to a control:
http://SteveOrr.net/faq/2in1.aspx Show quoteHide quote "Inge Larsson" <IngeLars***@discussions.microsoft.com> wrote in message news:31EF99BD-FBF7-41B0-9BF9-46D15A8DE431@microsoft.com... > Hi, > > I have a number of TextBox'es and do AutoPostBack of the form for every > text > box that the user leave (to handle data along the way). However, the tab > order is broken for every postback, and the tab order starts from the > beginning on every load of the page. Is there a way in ASP.NET 1.1 to, > from > the CodeBehind page, set focus to whatever TextBox I like? > > Thanks, > Inge Thanks Steve for this solution, which taken generically is very valuable in a
lot more situations! Inge Show quoteHide quote "Steve C. Orr [MVP, MCSD]" wrote: > Here's how you set the focus to a control: > http://SteveOrr.net/faq/2in1.aspx > > -- > I hope this helps, > Steve C. Orr, MCSD, MVP > http://SteveOrr.net > > > "Inge Larsson" <IngeLars***@discussions.microsoft.com> wrote in message > news:31EF99BD-FBF7-41B0-9BF9-46D15A8DE431@microsoft.com... > > Hi, > > > > I have a number of TextBox'es and do AutoPostBack of the form for every > > text > > box that the user leave (to handle data along the way). However, the tab > > order is broken for every postback, and the tab order starts from the > > beginning on every load of the page. Is there a way in ASP.NET 1.1 to, > > from > > the CodeBehind page, set focus to whatever TextBox I like? > > > > Thanks, > > Inge > > >
System.Web.HttpException FindContol exception
framed Open htm and asp pagen inside an .NET aspx project Deriving from built-in DataGrid control asp.net 2.0 webparts Custom Server Control Design Best Practices? How to Display an image, from a DB, into the Gridview (ASP.NET 2.0) Welcome to Gridview Hell Webpartzone as DIV SelectedIndexChanged Event of Dropdownlist on a DLL.. |
|||||||||||||||||||||||