pagina aspx
	codice:
	<%@ Page Language="vb" AutoEventWireup="false" Codebehind="postback1.aspx.vb" Inherits="corso_apogeo.postback1"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
	<HEAD>
		<title>a</title>
		<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
		<meta name="CODE_LANGUAGE" content="Visual Basic .NET 7.1">
		<meta name="vs_defaultClientScript" content="JavaScript">
		<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
		<LINK href="../../Styles.css" type="text/css" rel="stylesheet">
	</HEAD>
	<body MS_POSITIONING="FlowLayout">
		<form id="Form1" method="post" runat="server">
			
				<asp:Button id="Button1" runat="server" Text="Button"></asp:Button>
				<asp:ImageButton id="ImageButton1" runat="server" ImageUrl="../../immagini/cestino.gif"></asp:ImageButton>
				<asp:LinkButton id="LinkButton1" runat="server">LinkButton</asp:LinkButton>
				<asp:CheckBox id="CheckBox1" runat="server" AutoPostBack="True"></asp:CheckBox>
			</P>
			
Chi ha fatto il PostBack? -->
				<asp:Label id="Label1" runat="server"></asp:Label>
			</P>
		</form>
	</body>
</HTML>
 
codice sottostante
	codice:
	    Private ChiHaFattoPostBackID$ = ""
    Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        'Inserire qui il codice utente necessario per inizializzare la pagina
        If Me.IsPostBack Then
            If ChiHaFattoPostBackID = "" Then
                If (Trim(Me.Request.Form("__EVENTTARGET")) <> "") Then
                    ChiHaFattoPostBackID = Trim(Me.Request.Form("__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(ByVal control As System.Web.UI.IPostBackEventHandler)
        MyBase.RegisterRequiresRaiseEvent(control)
        Me.ChiHaFattoPostBackID = (DirectCast(control, WebControl).UniqueID)
    End Sub
 
NOTA BENE:  Io non ho mai usato questa tecnica  perchè uso con profitto gli eventi. :master: Ho il sospetto che tu abbia strutturato male la logica
 perchè uso con profitto gli eventi. :master: Ho il sospetto che tu abbia strutturato male la logica  
 
Ciao  