ajax calls not happening wth jquery ans asp.net 2005

ajax calls not happening wth jquery ans asp.net 2005

hi,

am trying to call a server function like this

$(document).ready(function (){
$('#Button1').click(function()
{
$.ajax({
type: "POST",
url: "remotefunctions.aspx/Test",
data: "{'str':'1'}",
contentType: "application/json; charset=utf-8",
dataType: "json",

error: function (xhr) {alert(xhr.statusText);},
success: function(msg)
{

//alert(msg);
var result = msg;
alert(msg)
alert("hI");

}

});
});

});

c# function in remotefunctions.aspx.cs

[WebMethod()]
public string Test(string str)
{
return "-1";

}

am unable to get any results frm server...also my respose code seems
to be 200....

b u d d h a