How to fire a client event from a composite control

Discussion in 'ASP .Net Building Controls' started by Joe Abou Jaoude, Jul 3, 2007.

  1. hi,
    i have a composite control that contains a textbox. I want the
    programmer that uses my control to be able to write a javascript
    function to handle the onchange event of the textbox.

    How can I do that ?
    Thank you


    *** Sent via Developersdex http://www.developersdex.com ***
     
    Joe Abou Jaoude, Jul 3, 2007
    #1
    1. Advertising

  2. Provide a public property OnClientTextChange as string and then in PreRender
    event add this to your internal textbox' onchange attribute

    "Joe Abou Jaoude" wrote:

    >
    >
    > hi,
    > i have a composite control that contains a textbox. I want the
    > programmer that uses my control to be able to write a javascript
    > function to handle the onchange event of the textbox.
    >
    > How can I do that ?
    > Thank you
    >
    >
    > *** Sent via Developersdex http://www.developersdex.com ***
    >
     
    Sergey Poberezovskiy, Jul 4, 2007
    #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. sleigh
    Replies:
    1
    Views:
    2,737
    sleigh
    Feb 12, 2004
  2. C. Ramsey

    Composite Control datagrid event does not fire

    C. Ramsey, Sep 12, 2003, in forum: ASP .Net Building Controls
    Replies:
    1
    Views:
    173
    Teemu Keiski
    Sep 15, 2003
  3. Chad
    Replies:
    0
    Views:
    253
  4. Patrick

    composite control does not fire event

    Patrick, Jul 15, 2005, in forum: ASP .Net Building Controls
    Replies:
    1
    Views:
    178
    Patrick
    Jul 19, 2005
  5. Patrick

    composite control does not fire event

    Patrick, Jul 18, 2005, in forum: ASP .Net Web Controls
    Replies:
    3
    Views:
    158
    Steve Walker
    Jul 18, 2005
Loading...

Share This Page