call content page method from .aspx page
Hi,
I've a Master Page - Content Page scenario. I want to call server side (content page ) method using $.ajax. with normal pages I can easily call it but when I try to call content page method, instead of returning function return value, it returns parsed xhtml.
I use the following way to call the content page method
function GetBankName()
{
var data = { bsbNumber: $('[id$=bsbTextBox]').val() };
data = JSON.stringify(data);
$.ajax({
type: "POST",
url: "DependantDirectCredit.aspx/GetBankName",
data: data,
dataType: "text",
success: function(result)
{
result = result["d"];
$('[id$=bsbTextBox]').val(result);
}
});
}
Any idea how to call a function??
Any help appreciated
Thanks,
Maulik