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

WebForm Command Buttons

How do I handle all click events for all controls in Panel.Controls with one
event procedure?
Nov 21 '05 #1
5 1063
There is some special crap you need to do to create a control array in .net

So if your not using a control array the only way i know how to handle mult
events. (Important::: events must have same signature)

public sub EventHandler(byval sender, byval e) handles
control1.click,control2.click,control3.click,contr ol4.click

end sub

"WhoopDing" <vb@whoopding.com> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
How do I handle all click events for all controls in Panel.Controls with
one event procedure?

Nov 21 '05 #2
WhoopDing,

Somebody asked this as well today and he got some answers and told that he
was on the right track.

http://groups-beta.google.com/group/...67d35f30f3899f

Have a look for it.

Cor
Nov 21 '05 #3
That was me!

Went off at a tangent for a while. Sorted it now.

What would be nice though, would be to add a handler for
Panel.Controls().Command that covers all elements.

"Cor Ligthert" <no************@planet.nl> wrote in message
news:OW**************@TK2MSFTNGP14.phx.gbl...
WhoopDing,

Somebody asked this as well today and he got some answers and told that he
was on the right track.

http://groups-beta.google.com/group/...67d35f30f3899f

Have a look for it.

Cor

Nov 21 '05 #4
WhoopDing,

What you ask is in the sample I show, so I don't see the problem

Cor
Nov 21 '05 #5
Yeah Cor, you have already explained that one.
Sorry mate.

"Cor Ligthert" <no************@planet.nl> wrote in message
news:Oe**************@TK2MSFTNGP09.phx.gbl...
WhoopDing,

What you ask is in the sample I show, so I don't see the problem

Cor

Nov 21 '05 #6

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

Similar topics

1
by: teddy | last post by:
I am trying to create a bookstore WebApplication using c#. I can display the books (obtained from sql server) on a table in a WebForm. At the end of each row, I would like to add "add to cart"...
0
by: Kevin McLean | last post by:
I have serveral ASP web pages containing command buttons that perform different functions. This web site has been running for serveral months without any problems. I had taken a vacation and when...
1
by: bjbounce2002 | last post by:
Hello, I am using forms with command buttons to close form or run action queries. The error messages such as "Null value in required field" or "duplicate value in primary key" are suppressed....
2
by: Tor Inge Rislaa | last post by:
Showing an HTML file in part of a Webform Hi I have a Webform with some buttons on the left side of the form. What I want when clicking one of the buttons is to show an HTML document in a part...
2
by: Pegter | last post by:
Hi Why cant i see my webform buttons in de IE???? thanks
1
by: ffhansix | last post by:
Hi, I have migrated a web site from .NET 1.1.4322 to .NET 2.0. After the migration my Modal webform does not work as it did in 1.1. The webform pops up from a page when a user clicks a button:...
14
by: Kevin | last post by:
A couple of easy questions here hopefully. I've been working on two different database projects which make use of multiple forms. 1. Where's the best/recommended placement for command buttons...
3
by: Gordon | last post by:
Hi; Can you add a column of button controls to a winform datagrid ? I have a form with three independant grids. I would like to add buttons i.e. update, add buttons at the end of each row....
1
by: mapfax | last post by:
I have 2 select button columns in my webform datagrid with each button's property set to the 'select' command name. How can I determine the column index selected for each of the buttons so that I...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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,...

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.