I am using a touch to call link in an asp.net application and want to make a server side call prior to executing the touch calling link itself. the idea is that the link would also call a method on the code behind to log the click event.
html
<a href="tel:+1800229900">Call us free!</a>
c# code behind
[System.Web.Services.WebMethod]
public static string logClick(string candContactedID)
{
try
{
/*
insert into DB currDateTime, candContactedID
*/
return "call logged for candidate = " + candContactedID;
}
catch (Exception ex)
{
return errorMessage + ex.InnerException;
}
}
do I need jquery client code code or is there a .net trick here to magically wire things up?