Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question<ToolboxData("<{0}:Label runat=""server""></{0}:Label>")> Public Class Label Inherits System.Web.UI.WebControls.Label Private _AutoPostBack As Boolean Property [AutoPostBack]() As Boolean Get Return _AutoPostBack End Get Set(ByVal Value As Boolean) _AutoPostBack = Value End Set End Property Public Event MouseOver As EventHandler Protected Overrides Sub Render(ByVal output As System.Web.UI.HtmlTextWriter) If _AutoPostBack Then output.AddAttribute("onmouseover", "javascript:" & Page.GetPostBackClientEvent(Me, "onMouseOver")) End If MyBase.Render(output) End Sub Private Sub Label_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load If Page.IsPostBack Then If Not Page.Request.Params("__EVENTTARGET") Is Nothing AndAlso Page.Request.Params("__EVENTTARGET") Me.UniqueID AndAlso Page.Request.Params("__EVENTARGUMENT") Is Nothing AndAlso Page.Request.Params("__EVENTARGUMENT") "onMouseOver" Then RaiseEvent MouseOver(Page.Request.Params("__EVENTTARGET"), (New EventArgs).Empty) End If End If End Sub End Class