Yes, That is possible
Make the methods written in test.aspx.cs as webmethod
[WebMethod(EnableSession = false)]
public static string testfunction(string param)
{
return "abc";
}
Call this function via jquery ajax call
function ajaxFunction() {
$.ajax({
type: "POST",
url: "test.aspx/testfunction",
data: "{param: " + page + "}",
contentType: "application/json",
dataType: "json",
success: function (msg) {
OnSiteManagementSuccess(msg.d);
},
error: function (msg) { msg.responseText; }
});
}
call this ajax function as per your requiremnt