473,398 Members | 2,427 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,398 software developers and data experts.

ASCX / DHTML events question

Hi,

I have a user control which is basically just a container for a bunch of
controls. However, I need to catch javascript events from one of the
controls within and use that information to modify another.

Here is an example :
------------------------
<%@ Control Language="c#" AutoEventWireup="false"
Codebehind="simple.ascx.cs" Inherits="TestCtl.simple"
TargetSchema="http://schemas.microsoft.com/intellisense/ie5"%>
<asp:TextBox ID="txtInput" onchange="lblOutput.innerText=this.value;"
Runat="server"/>
<asp:Label ID="lblOutput" Text="Empty" Runat="server"/>
------------------------

Is there a best practice for this type of situation?

Also; there will be multiple instances of this control on my page, and I
still need the ability for function properly and only for the specific
control.

Thanks,
John
Nov 19 '05 #1
1 1069
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:WK*******************@news20.bellglobal.com.. .
Hi,

I have a user control which is basically just a container for a bunch of
controls. However, I need to catch javascript events from one of the
controls within and use that information to modify another.

Here is an example :
------------------------
<%@ Control Language="c#" AutoEventWireup="false"
Codebehind="simple.ascx.cs" Inherits="TestCtl.simple"
TargetSchema="http://schemas.microsoft.com/intellisense/ie5"%>
<asp:TextBox ID="txtInput" onchange="lblOutput.innerText=this.value;"
Runat="server"/>
<asp:Label ID="lblOutput" Text="Empty" Runat="server"/>
------------------------

Is there a best practice for this type of situation?

Also; there will be multiple instances of this control on my page, and I
still need the ability for function properly and only for the specific
control.

Thanks,
John

Nov 19 '05 #2

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

Similar topics

3
by: John Crowley | last post by:
I've run into a problem where drop down lists are refusing to data bind with the following error on the DataBind() call Specified argument was out of the range of valid values. Parameter name:...
5
by: Antonio Ooi | last post by:
Hi, I'm an application developer from Malaysia. I wanted to know how ASP.NET server-side events vs. client-side DHTML for FORM manipulations, may be in terms of performance and practicality? To...
2
by: sanju | last post by:
hi there i am trying to fire an button event in ascx file which interacts with database ,my problem is " i am calling ascx file wiht a button click dynamically when user needs to update database...
2
by: Holger (David) Wagner | last post by:
Hi all, I'd like to have several "skins" for an application that are "structurally different" (i.e. controls at different locations, some controls visible only in a particular "skin"). The...
5
by: djscratchnsniffing | last post by:
i know you can access an ascx's properties/methods from an aspx file. Let's say you have an aspx file with two code-behind files(ascx files). Can you access one of the ascx file's...
1
by: John | last post by:
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,...
6
by: Martin Eyles | last post by:
Hi, I have a .aspx page which has a .ascx file included through the lines <%@ Register TagPrefix="aspcustom" TagName="menu" Src="Menu.ascx" %> and <aspcustom:menu id="Menu1"...
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)....
3
by: Bert | last post by:
Hi I am trying to load my user control in a placeholder, i get an error: c:\inetpub\wwwroot\testinline\WebForm2.aspx.vb(26): Type 'WebUserControl6' is not defined? Private Sub...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.