I am trying to call a method with jQuery on a button click.This is waht I have so far:
jQuery
$(\"a.AddToCart\").click(function () { var link =
$(document).ready(function () { $.ajax({ url: "Testajax.aspx/GetDate", data: "f=GetDate", cache: false, success: function (content) { $('#tableData').append('My Dear Friend'); alert(content); }, failure: function (response) { alert("no data found"); } }); });