Results 1 to 6 of 6

Thread: Textbox leave event***RESOLVED***

  1. #1

    Thread Starter
    Addicted Member Halon's Avatar
    Join Date
    Oct 2002
    Location
    under desk choking on rage
    Posts
    228

    Textbox leave event***RESOLVED***

    Is there a way to grab the leave event on an asp.net textbox (using vb)?

    I don't see it in the event handler for the object.

    All i want is to populate three other textboxes with values based on the number entered in the first textbox once it loses focus.

    Thanks for any suggestions.
    Last edited by Halon; Jul 21st, 2003 at 04:45 PM.
    Soylent Green tastes like chicken

  2. #2
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    you can only do ti with client side onBlur event.
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  3. #3
    PowerPoster Lethal's Avatar
    Join Date
    Oct 2000
    Location
    Ohio
    Posts
    2,496
    Like Cander said, you need to handle the onBlur event client-side, which should be pretty self explanatory using javascript. If you need any help, feel free to ask..

  4. #4

    Thread Starter
    Addicted Member Halon's Avatar
    Join Date
    Oct 2002
    Location
    under desk choking on rage
    Posts
    228
    I ended up just setting auto-postback to true and setting an event handler on the onTextChange event.
    Worked like a charm.


    Any reason that this shouldn't be done?

    Thanks for the suggestions
    Soylent Green tastes like chicken

  5. #5
    Frenzied Member DevGrp's Avatar
    Join Date
    Nov 2001
    Location
    Charlotte, NC
    Posts
    1,256
    Try to minimize all the unessessary postbacks. So I would use JavaScript.

  6. #6
    Fanatic Member
    Join Date
    Oct 2001
    Location
    Indiana
    Posts
    612

    Re: Textbox leave event***RESOLVED***

    DevGrp, Do you have an example of this in Java Script that you can share with us?
    David Wilhelm

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width