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

CommandButtons

How do I trigger a single event for all Command Buttons on a WebForm?

For example, I have 9 Command Buttons on my WebForm, but want to handle the
'Command' event for all of them with a single event procedure.

Thanks.
Nov 21 '05 #1
3 797
"WhoopDing" <vb@whoopding.com> wrote in news:ut0v0CxEFHA.2052
@TK2MSFTNGP09.phx.gbl:
For example, I have 9 Command Buttons on my WebForm, but want to handle the
'Command' event for all of them with a single event procedure.


Just assign them all to the same method, and then use sender to differntiate
them in the method.
--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"

Develop ASP.NET applications easier and in less time:
http://www.atozed.com/IntraWeb/
Nov 21 '05 #2
Whoopding,

Did you ever saw this sample of my, I think it shows what you want to do,
although you don't need to make those dynamic buttons.

http://groups-beta.google.com/group/...cf7523e1e761e2

I hope this helps?

Cor
Nov 21 '05 #3
Thought I was on the right track.

Thanks people.

"WhoopDing" <vb@whoopding.com> wrote in message
news:ut**************@TK2MSFTNGP09.phx.gbl...
How do I trigger a single event for all Command Buttons on a WebForm?

For example, I have 9 Command Buttons on my WebForm, but want to handle
the
'Command' event for all of them with a single event procedure.

Thanks.

Nov 21 '05 #4

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

Similar topics

3
by: ¤ Alias | last post by:
I have a function named getID3info (lvwDiscInfo.SelectedItem). What is the difference between getID3info (lvwDiscInfo.SelectedItem) and Call getID3info(lvwDiscInfo.SelectedItem) ?
3
by: Kevin | last post by:
Hi i'm having a problem passing an arrays of controls on a form to a function or sub. I can use this code for any datatype but when i change 'long' to 'label' in the public sub and i call the sub...
1
by: Filips Benoit | last post by:
Dear All, SQL-SERVER-DB Access interface 25 users I want to know how the users are working with the interface: * What forms the use * What routines the run ( commandbuttons) * How long...
8
by: John Salerno | last post by:
Hi all. I'm currently learning C#, and I'm also interested in learning Python (all of this just for fun, mind you), so it seems like a decent idea to want to integrate the two. But I don't quite...
1
by: Scott | last post by:
My little access app is now working happily with a "browse" button that lets me link to a .mdb data-set for the app to work with. Problem is, that I store various data sets on different machines...
5
by: Tom | last post by:
How can I find the first blank control on a form by looking at the controls in the order of their tab order? Thanks! Tom
2
by: tdmailbox | last post by:
I am in the process of finishing up moderate sized access database application. I am in the process now of building a switchboard to house all the forms and reports. I decided the in built in...
1
by: sarangjavkhedkar | last post by:
changing the color of command button caption
10
Ali Rizwan
by: Ali Rizwan | last post by:
Hi All. Yesterday I was searching on the net for something new for VB when I found a technique by which I am able to convert my VB6 applications into XP styles. <?xml version="1.0"...
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: 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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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.