Groups | Blog | Home
all groups > asp.net webcontrols > july 2003 >

asp.net webcontrols : OnClick Event for Toolbar WebControl


Jim Mitchell
7/12/2003 8:57:09 AM
I added a toolbar and then added two images that the user can not click on.
I double click on the toolbar in design mode and it does not seem to create
any kind of OnClick Event.

Can someone show me some sample code for the Toolbar's onclick event?

Thanks in advance.

Jim Mitchell
7/12/2003 9:46:18 AM
ANSWER....

Private Sub Toolbar1_ButtonClick(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Toolbar1.ButtonClick

TextBox1.Text = "Clciked"

TextBox1.Text = sender.ToString()

TextBox1.Text = sender.Text

TextBox1.Text = sender.Index

'TextBox1.Text = e.ToolTip.ToString

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



End Sub

[quoted text, click to view]

AddThis Social Bookmark Button