views:

301

answers:

0

I am attempting to create a subclass of a web conmtrol that implements IScriptControl. I have managed to make the serverside chanegs that I need, and the control has happily inherited all of the clientside bahaviour from its base class.

I now wish to add to this behaviour. Specifically I need my class to handle a javascript event that is raised by its parent. What is the best way to do this. I guess I can override the implementation of GetScriptDescriptors to add or modify the script descriptors and add my event handler but I cant figure out exactly how to do this. I would like the additional javascript to reside in its own file.

I understand this may be pushing the AJAX framework somewhat but does anyone have any ideas?