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. Advertising

  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. 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. 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,651
    Steve C. Orr, MCSD
    Aug 29, 2003
  2. Pratap

    LostFocus Event

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

    TextBox lostfocus event

    blighty, Aug 18, 2004, in forum: ASP .Net Mobile
    Replies:
    0
    Views:
    259
    blighty
    Aug 18, 2004
  5. Annie

    Lostfocus event in textbox

    Annie, May 24, 2006, in forum: ASP .Net Web Controls
    Replies:
    4
    Views:
    1,732
    Annie
    May 27, 2006
Loading...

Share This Page