Si defines varios botones <input id="btnGetTime" type="button" value="Show Current Time" /> <input id="btnGetTime2" type="button" value="Show Current Time" /> <input id="btnGetTime3" type="button" value="Show Current Time" /> podrias enviar el nombre de que lanza la accion <script type = "text/javascript"> $(function(){ $("[id*='btnGetTime']").click(function(){ var buttonName = $(this).attr('id'); ShowCurrentTime(buttonName); }); }); function ShowCurrentTime(buttonName) { var params = { name: buttonName }; $.ajax({ type: "POST", url: "Test.aspx/myFunction", data: params, contentType: "application/json; charset=utf-8", dataType: "json", success: OnSuccess, failure: function (response) { //alert(response.d); } }); } function OnSuccess(response) { $('#<%=Label1.ClientID %>').html(response.d[0]); $('#<%=Label2.ClientID %>').html(response.d[1]); $('#<%=Label3.ClientID %>').html(response.d[2]); } </script> a los diferentes botones le asocias el click de forma dinamica por eso el selector usando el `*=` tomando todos los botones que tengan el texto que definas. [Attribute Contains Selector \[name*=”value”\]][1] [1]: https://api.jquery.com/attribute-contains-selector/