Bonjour à tous,
Je cherche à ajouter une fonctionnalité "onclick" sur un label mais je n'y parviens pas, cela focntionne pour le onmouseover ou le onmouseout mais pas le onclick...
une idée ?
Voici mon code VB :
dans la page_load :
Label1.Style(HtmlTextWriterStyle.Cursor) = "pointer"
Label1.CssClass = "bt2"
Label1.Attributes.Add("onmouseover", "this.className='bt2hover';")
Label1.Attributes.Add("onmouseout", "this.className='bt2';")
Label1.Attributes.Add("onClick", "Label1_Click()")
code appelé pour le onclick
Protected Sub Label1_Click()
TextBox1.Text = "Coucou Label 1"
End Sub
A+
Shak