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
    Joe Abou Jaoude, Jul 3, 2007
    1. Advertisements

  2. Provide a public property OnClientTextChange as string and then in PreRender
    event add this to your internal textbox' onchange attribute
    Sergey Poberezovskiy, Jul 4, 2007
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.