473,323 Members | 1,560 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,323 software developers and data experts.

multiple control with single event handler

i try to create dynamic control and have a single event handler to ease the fireevent
how do i do it?
also can i declare a single event handler to parent control
and be use by child control of the same type
in example:
creating htmlanchor name aa
aa.Control.Add(any anchor)
after adding the control
declare the event handler
Jun 15 '10 #1
1 1673
Frinavale
9,735 Expert Mod 8TB
Please review How to use Dynamic Controls in ASP.NETand also review How to use events in .NET.

-Frinny
Jun 21 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Sylvain | last post by:
Hi All I need to add a new event at the beginning of an event handler e.g.: I've got a textbox which is assigned an event at design time to the TextChanged eventhandler, but I need to add a new...
12
by: Bob | last post by:
In the VB.NET Page_Load() function , how can I know which control causes the page postback?
3
by: akki | last post by:
I create link buttons dynamically in the code and give them IDs through which I can distinguish them.I want to know how to create a single event handler for all the link buttons that I create The...
5
by: Martin | last post by:
I have a menu, a rather big one. It contains about 150 items. Normally this would mean that I'd have about 150 event handlers: Private Sub Menu1_Click(ByVal sender As System.Object, ByVal e As...
4
by: TS | last post by:
I am creating a User control and i create some dynamic controls in the init handler. one of the controls is a custom validator which i assign a serverValidate event handler. I usally always do my...
7
by: pronerd | last post by:
Does any one know how to add a function to an event handler with out losing the current event handler? For example you can add multiple functions to a single event handler with something like : ...
2
by: ccbalapatel | last post by:
Hi, We have recently converted our code to ASP.NET 2.0. We have an user control that is embedded inside the page. The user control has a link button and the event handler for the link button is...
0
Shashi Sadasivan
by: Shashi Sadasivan | last post by:
Hi, I am creating a user control (.net 2.0, c#, win forms) with a progress bar, a timer, and 2 buttons. I have made indivdual properties so that the time can be enabled and to set its time...
7
by: Shani Aulakh | last post by:
Hi there, I just started learning C# and i dont really have much experience with object oriented programming languages. I have to write a method in C# which can call all the panels. I dont know...
4
by: =?Utf-8?B?TmF2YW5lZXRoLksuTg==?= | last post by:
Hi all, Recently I found an interesting question on C# forums about clearing event handlers of an event. I tried to give it a solution, but failed. I am interested to know how you guys take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.