Button Collection for Toolbar WebControl - Determinine which button was clicked

J

Jim Mitchell

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_ButtonClick(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Toolbar1.ButtonClick

TextBox1.Text = "Clicked"

'TextBox1.Text = sender.GetType.ToString

'TextBox1.Text = e.ToolTip.ToString

'textbox1.Text = sender..gettype.IndexOf(e.Button))



End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,022
Latest member
MaybelleMa

Latest Threads

Top