Questo è codice fatto tanto tempo fa

Comunque non l'ho mai usato perchè mi trovo meglio con la gestione degli eventi fatta da .net
codice:
Option Strict On
Partial Class Chi_ha_effettuato_il_postback_postback
    Inherits System.Web.UI.Page

    Private ChiHaFattoPostBackID As String = ""

    Private Sub Page_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
        Me.Label1.Text = ""
        If Me.IsPostBack Then
            If ChiHaFattoPostBackID = "" Then
                If (Trim(Me.Request.Form("__EVENTTARGET")) <> "") Then
                    ChiHaFattoPostBackID = Trim(Me.Request.Form("__EVENTTARGET")) & " (__EVENTTARGET)"
                End If
            End If
            'Label1.Text contiene l'id di chi ha fatto il postback
            Me.Label1.Text = ChiHaFattoPostBackID

        Else

        End If

    End Sub

    Public Overrides Sub RegisterRequiresRaiseEvent(control As System.Web.UI.IPostBackEventHandler)
        MyBase.RegisterRequiresRaiseEvent(control)
        Me.ChiHaFattoPostBackID = (DirectCast(control, WebControl).UniqueID) & " (RegisterRequiresRaiseEvent)"
    End Sub
End Class