Can I use OnTextChanged in JavaScript for TextBox

Discussion in 'ASP .Net Web Controls' started by Leo, Nov 18, 2003.

  1. Leo

    Leo Guest

    Hi,
    I have my textbox control, I want to fire an event for
    TextChanged, how can I do this?
    Thanks
    Leo
     
    Leo, Nov 18, 2003
    #1
    1. Advertising

  2. Leo

    Jon Paugh Guest

    try this:
    set the "OnChange" attribute for your server side control
    to your js function in the onload event of your page's
    codebehind:

    txtYourTextBox.Attributes.Add("onchange","yourfunction()");


    >-----Original Message-----
    >Hi,
    >I have my textbox control, I want to fire an event for
    >TextChanged, how can I do this?
    >Thanks
    >Leo
    >.
    >
     
    Jon Paugh, Nov 18, 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. Henri
    Replies:
    6
    Views:
    770
    Henri
    Aug 6, 2004
  2. Mark Siffer
    Replies:
    3
    Views:
    5,879
    Karl Seguin
    Mar 30, 2005
  3. MattB

    Textbox and OnTextChanged

    MattB, Sep 27, 2005, in forum: ASP .Net
    Replies:
    4
    Views:
    5,238
    Scott M.
    Sep 29, 2005
  4. =?Utf-8?B?UGF1bA==?=

    Textbox with OnTextChanged Event

    =?Utf-8?B?UGF1bA==?=, Jun 14, 2006, in forum: ASP .Net
    Replies:
    2
    Views:
    4,061
    =?Utf-8?B?TUFDSCBJSQ==?=
    Jun 14, 2006
  5. Replies:
    0
    Views:
    555
Loading...

Share This Page