Public Class unHandlerComun Inherits System.Web.UI.Page Protected WithEvents Label1 As System.Web.UI.WebControls.Label ' Agregarlo manualmente para acceder al formulario Protected Form1 As System.Web.UI.HtmlControls.HtmlForm Protected WithEvents Button1 As System.Web.UI.WebControls.Button #Region " Web Form Designer Generated Code " 'This call is required by the Web Form Designer. <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent() End Sub Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init 'CODEGEN: This method call is required by the Web Form Designer 'Do not modify it using the code editor. Dim oBoton As System.Web.UI.WebControls.Button For N = 0 To 25 oBoton = New System.Web.UI.WebControls.Button() oBoton.ID = N.ToString oBoton.Text = ChrW(Asc("A") + N) AddHandler oBoton.Click, AddressOf MuestraLabel Form1.Controls.AddAt(N, oBoton) Next AddHandler oBoton.Click, AddressOf MuestraLabel InitializeComponent() End Sub #End Region Public N As Integer = 0 Public Sub MuestraLabel(ByVal sender As Object, ByVal e As System.EventArgs) Label1.Text = "CLICK!" & CType(sender, Button).Text 'Put the code to handle your specific query here! End Sub Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load AddHandler Button1.Click, AddressOf MuestraLabel End Sub 'Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click ' MuestraLabel(sender, e) 'End Sub End ClassYou might be interested on following the discussion I posted there on MUG Peru's site, if so click here and look for it, it's named "Varios botones y un solo handler". Credits go for the folks in there! ;)