- For individual users
- Instant access to solutions
- Ask your tech questions
- Start your 30-day Free Trial
Main Topics
Browse All TopicsRecoding button details to track the incident (when clicked) on the button per the following example...
Example:
ALL GROUPS BUTTONS ON A SAME SCREEN
GROUP 1 :- 5 buttons
GROUP 2 :- 5 buttons
GROUP 3 :- 30 buttons
Questions:
- When clicked in 1 & 2 groups button color much change to GREEN and stay until or otherwise other button is clicked
- Group 3 when clicked, that should change mometarily to GREEN and change back to normal
- When Group 3 is clicked all the path (highlighted button from Group 1, highlighted button from gropu 2 and group 3 button)must be saved and count number of times group 3 button is clicked
THIS IS URGENT, SO your earliest response would be appreciated.
Thanks
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: kalliopiPosted on 2005-09-17 at 22:23:05ID: 14906108
I think I just answered this question below, but here's the code that will do what you want. I put 3 Panels and a Label on a WebForm and added this code to the Codebehind page...
n") = "document.all['" & P.ID & "'].style.backgroundColor= '#FF0000'; " ) = "document.all['" & P.ID & "'].style.backgroundColor= '#000000'; "
Public Function AddButton(ByVal Name As String, ByVal P As Panel)
Dim btn As New Button
btn.Text = Name
btn.CommandArgument = Name
btn.Attributes("onMouseDow
btn.Attributes("onMouseUp"
AddHandler btn.Click, AddressOf ButtonClick
P.Controls.Add(btn)
If Not IsPostBack Then ViewState("BTN: " & Name) = 0
End Function
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'Put user code to initialize the page here
For i As Integer = 1 To 5
AddButton("Group 1-" & i, Panel1)
Next
For i As Integer = 1 To 5
AddButton("Group 2-" & i, Panel2)
Next
For i As Integer = 1 To 20
AddButton("Group 3-" & i, Panel3)
Next
End Sub
Private Sub ButtonClick(ByVal sender As System.Object, ByVal e As System.EventArgs)
Dim btn As Button = sender
ViewState("BTN: " & btn.CommandArgument) += 1
End Sub
Private Sub Page_PreRender(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.PreRender
Label1.Text = ""
For i As Integer = 1 To 5
Label1.Text &= "Group 1-" & i & ": " & ViewState("BTN: Group 1-" & i) & "<br>"
Next
For i As Integer = 1 To 5
Label1.Text &= "Group 2-" & i & ": " & ViewState("BTN: Group 2-" & i) & "<br>"
Next
For i As Integer = 1 To 20
Label1.Text &= "Group 3-" & i & ": " & ViewState("BTN: Group 3-" & i) & "<br>"
Next
End Sub
Let me know if this is what you're looking for. Good luck.