hi,
You can achive this by Jquery ajax. Lets say you have a web method Report1 that takes 2 parameter fromDate and toDate.
[WebMethod]
public static String Report1(String fromDate,String toDate)
{
}
now you can call the above method by jquery ajax
$.ajax({
type: "POST",
url: "default.aspx/Report1",
data: "{fromDate:'1/1/2011',toDate:'6/30/2011'}"
contentType: "application/json; charset=utf-8",
dataType: "json",
beforeSend: function () { $("#wait").show(); },
complete: function () { $("#wait").hide(); },
success: function (msg) {
},
error: function () { }
});
check
here[
^] for code samples