473,407 Members | 2,315 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

ascx / dhtml events bubbling up to ctl event

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.
Nov 19 '05 #1
1 1366
Never mind.

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

Thanks anyway.
John
"John" <Pl*********@send.me.spam.com> wrote in message
news:NE*******************@news20.bellglobal.com.. .
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.

Nov 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: DaRik | last post by:
Hi, I'm having some difficulties with a menu I'm making. I build up the menu through DOM. I append childnodes to a tree. 2 types of children are possible: url (a hyperlink) and sub (a submap). ...
1
by: Mark Szlazak | last post by:
Is there a way to detect if an textarea onscroll event is working in Firefox (or Mozilla). I know that there is an onscroll event bubbling bug with current vesions of these browsers so I want to...
3
by: VK | last post by:
To PointedEars with my deep respect. Author ;-) There were a question a while ago about events. Now I see that my original explanation was not full. Check this sample out: <html> <head>...
6
by: Cockroach | last post by:
Hello, I have a problem where the onClick of a table row will activates a window.location event, and inside a cell in that row, an image onClick event shows/hides a div. The problem is that...
7
by: Colin Young | last post by:
I have a UserControl that contains a calendar control. The calendar is not raising events (month navigation, date selections, etc.). I've checked that the OnSelectionChanged event has a handler...
1
by: Anonieko | last post by:
I know Visual Studio lacked support on easily writing code to raise events from a ascx user control ( because you have to hand write them)....
1
by: Christian Sengstock | last post by:
Hi all, i have a js application with several event handlers which i manage via prototype .bindAsEventListener. On normal page navigation ( link navigation ) i finish all events handlers...
3
by: MikeK | last post by:
Ok, I've been noodling with this for several days now and I'm starting to go crazy. Does Apple's Safari browser support drag events on Textarea elements? The few specs and docs I've found seem to...
5
by: =?Utf-8?B?UGF1bA==?= | last post by:
Hello, I am aware that in ASP.NET there is the concept of event bubbling. What I am after is some advice on achieveing the same thing in a standard application. Say I have 3 classes. View,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.