Need to find which textbox has focus from a user control.

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • dougmcmurtry@gmail.com

    Need to find which textbox has focus from a user control.

    I have a web app that is going on a touch screen computer with no
    keyboard, so I have to allow them to enter numeric data into text
    fields through a UserControl that I built. All I need to find is which
    textbox control on the page has focus so I know where to put the
    input. Any ideas? Thanks all......
  • =?Utf-8?B?YnJ1Y2UgYmFya2Vy?=

    #2
    RE: Need to find which textbox has focus from a user control.

    your user control will have the focus. you need to decide on the UI, how to
    identify the textbox, the touch control will fill in.

    you coudl use the textbox onfocus event to save the id of the last textbox.

    -- bruce (sqlwork.com)


    "dougmcmurtry@g mail.com" wrote:
    I have a web app that is going on a touch screen computer with no
    keyboard, so I have to allow them to enter numeric data into text
    fields through a UserControl that I built. All I need to find is which
    textbox control on the page has focus so I know where to put the
    input. Any ideas? Thanks all......
    >

    Comment

    • dougmcmurtry@gmail.com

      #3
      Re: Need to find which textbox has focus from a user control.

      Do you know if I can use the Javascript onfocus event to set a
      protected member variable on the aspx page?

      Comment

      Working...