Is there any way to determine which control has the focus in the codebehind?

Discussion in 'ASP .Net' started by José Joye, Jun 24, 2006.

  1. José Joye

    José Joye Guest

    Hello,

    I need to determine which control has the focus in my page_load. Is there a
    way to do so.
    I have found lots of sample explaining how to set the focus (using
    javascript). but no info explaining how to determine how to determine who
    has the focus (or a .HasFocus() method).

    Thanks,
    José
     
    José Joye, Jun 24, 2006
    #1
    1. Advertising

  2. Are you using asp.net version 1.1 or 2.0?

    "José Joye" <> wrote in message news:449cef65$...
    > Hello,
    >
    > I need to determine which control has the focus in my page_load. Is there
    > a
    > way to do so.
    > I have found lots of sample explaining how to set the focus (using
    > javascript). but no info explaining how to determine how to determine who
    > has the focus (or a .HasFocus() method).
    >
    > Thanks,
    > José
    >
    >
     
    Patrick.O.Ige, Jun 24, 2006
    #2
    1. Advertising

  3. José Joye

    José Joye Guest

    I'm usign .net 1.1

    - José
    "Patrick.O.Ige" <> wrote in message
    news:...
    > Are you using asp.net version 1.1 or 2.0?
    >
    > "José Joye" <> wrote in message news:449cef65$...
    > > Hello,
    > >
    > > I need to determine which control has the focus in my page_load. Is

    there
    > > a
    > > way to do so.
    > > I have found lots of sample explaining how to set the focus (using
    > > javascript). but no info explaining how to determine how to determine

    who
    > > has the focus (or a .HasFocus() method).
    > >
    > > Thanks,
    > > José
    > >
    > >

    >
    >
     
    José Joye, Jun 24, 2006
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Thomasa Gregg
    Replies:
    1
    Views:
    746
    clintonG
    Jun 28, 2004
  2. Victor Ng
    Replies:
    6
    Views:
    358
    Victor Ng
    Mar 4, 2005
  3. Scott Navarre
    Replies:
    1
    Views:
    120
    lallous
    Jan 27, 2004
  4. Roger
    Replies:
    3
    Views:
    330
  5. Ramon F Herrera
    Replies:
    1
    Views:
    86
    Thomas 'PointedEars' Lahn
    May 13, 2009
Loading...

Share This Page