ascx / dhtml events bubbling up to ctl event

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.
 
J

John

Never mind.

I've been bouncing this around all day, but as soon as I ask ... I figure it
out.

Thanks anyway.
John
 

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. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
473,763
Messages
2,569,562
Members
45,038
Latest member
OrderProperKetocapsules

Latest Threads

Top