setfocus and text boxes

Last post 11-18-2008 5:13 PM by norchnou. 1 replies.

Sort Posts:

  • setfocus and text boxes

    11-17-2008, 9:03 AM
    • Member
      36 point Member
    • bouwob2
    • Member since 11-13-2008, 3:35 AM
    • Posts 5
    I have an ajax updatepanel used to make a smart box. My problem is that when I setfocus to a textbox it always goes to the beginning of the text box instead of the last key entered.  so what happens is (the pipe will act as the curser) ||t|te|tex   What I need to happen is |t|te|

    tex|

    Any thoughts on how to achieve this. TIA

  • Re: setfocus and text boxes

    11-18-2008, 5:13 PM
    Answer
    • Member
      672 point Member
    • norchnou
    • Member since 01-07-2007, 8:41 PM
    • Posts 282

    because your update panel may have use the ontextchanged event of the text box as a trigger...

    Try setting focus on the page.Init or Page.Load event

Page 1 of 1 (2 items)