protected void calcularDif(object sender, EventArgs e) { WebControl myControl = sender as WebControl; ControlesDinamicos.calcularDif(myControl, pnDatosA, pnDatosB, pnDatosC); }