Groups | Blog | Home
all groups > asp.net building controls > july 2007 >

asp.net building controls : How to fire a client event from a composite control


Joe Abou Jaoude
7/3/2007 4:44:35 AM


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


Sergey Poberezovskiy
7/3/2007 9:26:01 PM
Provide a public property OnClientTextChange as string and then in PreRender
event add this to your internal textbox' onchange attribute

[quoted text, click to view]
AddThis Social Bookmark Button