Button Collection for Toolbar WebControl - Determinine which button was clicked

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jim Mitchell

    Button Collection for Toolbar WebControl - Determinine which button was clicked

    I am using the following code to trap the onclick event for the Toolbar
    Webcontrol. The problem is that I have no way to tell which button on the
    toolbar was clicked.

    Any ideas?

    Thanks in advance.

    Private Sub Toolbar1_Button Click(ByVal sender As System.Object, ByVal e As
    System.EventArg s) Handles Toolbar1.Button Click

    TextBox1.Text = "Clicked"

    'TextBox1.Text = sender.GetType. ToString

    'TextBox1.Text = e.ToolTip.ToStr ing

    'textbox1.Text = sender..gettype .IndexOf(e.Butt on))



    End Sub


Working...