LostFocus GotFocus Events

Discussion in 'ASP .Net Web Controls' started by Pratap, Dec 30, 2003.

  1. Pratap

    Pratap Guest

    Is it possible to capture LostFocus and GotFocus Events
    for a TEXTBOX WebForms Control using ASP.NET.. if so How.?
     
    Pratap, Dec 30, 2003
    #1
    1. Advertisements

  2. Pratap

    Teemu Keiski Guest

    At client-side (HTML) you could attach handlers to onfocus and onblur events
    of the INPUT object to get to the events (IE ahs also new onfocusin and
    onfocusout events). If you want to take them to server-side, you need to
    create a custom control that inherits from TextBox or manage the events at
    client-side.

    --
    Teemu Keiski
    MCP, Microsoft MVP (ASP.NET), AspInsiders member
    ASP.NET Forum Moderator, AspAlliance Columnist


    "Pratap" <> wrote in message
    news:028e01c3cebd$b0675a50$...
    > Is it possible to capture LostFocus and GotFocus Events
    > for a TEXTBOX WebForms Control using ASP.NET.. if so How.?
     
    Teemu Keiski, Dec 30, 2003
    #2
    1. Advertisements

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. Gopal Krishna Tengli

    To sence use the gotfocus event. for textbox ASP.NET

    Gopal Krishna Tengli, Aug 29, 2003, in forum: ASP .Net
    Replies:
    2
    Views:
    5,847
    Steve C. Orr, MCSD
    Aug 29, 2003
  2. shiv
    Replies:
    0
    Views:
    661
  3. Pratap

    LostFocus Event

    Pratap, Dec 30, 2003, in forum: ASP .Net
    Replies:
    2
    Views:
    3,649
    Kevin Spencer
    Dec 30, 2003
  4. Radu
    Replies:
    1
    Views:
    1,001
    Cowboy \(Gregory A. Beamer\)
    Jul 17, 2007
  5. blighty

    TextBox lostfocus event

    blighty, Aug 18, 2004, in forum: ASP .Net Mobile
    Replies:
    0
    Views:
    351
    blighty
    Aug 18, 2004
  6. Chris

    Events Events Events Please Help

    Chris, Aug 30, 2005, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    661
    Chris
    Aug 30, 2005
  7. Annie

    Lostfocus event in textbox

    Annie, May 24, 2006, in forum: ASP .Net Web Controls
    Replies:
    4
    Views:
    2,160
    Annie
    May 27, 2006
  8. Alex
    Replies:
    1
    Views:
    220
    Benjamin Sattler
    Jul 17, 2007
Loading...