//onclick doesn not accept like VAR="XD"(string), you have to indicate it that //you are passing a string variable //int string <a onclick='Edit(" + Valor.Id_Adress + ", "" + Valor.Nombre + "")'>:D</a>