J
John
Hi,
I've decided to try to reduce duplicate code and simplify a seriously
complicated page I have by using web user controls.
My problem is; one of the controls contained within my new ascx, needs to
update the page when ever it changes. In appreciation for encapsulation, I
do not want to call a page level javascript function from an internal
control ... I want it as self contained as possible.
Is there anyway to add a dhtml event to my ascx? For example, is there
anyway to add a js event handler to my ascx control declaration? Like the
onchange event in the following? :
------------------------
<mine:MyCtl id="myctl1" onchange="myctl1_onChange();" runat="server"/>
------------------------
Is there a best practice for this type of situation?
Thanks in advance,
John
BTW-This is different than my last question.
I've decided to try to reduce duplicate code and simplify a seriously
complicated page I have by using web user controls.
My problem is; one of the controls contained within my new ascx, needs to
update the page when ever it changes. In appreciation for encapsulation, I
do not want to call a page level javascript function from an internal
control ... I want it as self contained as possible.
Is there anyway to add a dhtml event to my ascx? For example, is there
anyway to add a js event handler to my ascx control declaration? Like the
onchange event in the following? :
------------------------
<mine:MyCtl id="myctl1" onchange="myctl1_onChange();" runat="server"/>
------------------------
Is there a best practice for this type of situation?
Thanks in advance,
John
BTW-This is different than my last question.