I am a newbie to ASP.NET. i wish to invoke a server side event/function on a client click, without refreshing the page. I tried ajax,__dopostback etc... but failed miserably.. may be because of my less knowledge in ASP
Can anyone help me pls
$.ajax({
type:"POST",
url:"projects.aspx/slides",
data: "{'value':''}",
contentType:"application/json;charset=utf-8",
dataType:"json",
//cache:false,
success:function(data){
alert("OK");
alert(data.d);
},
error:function(XMLHttpRequest,textStatus,errorThrown)
{
alert(textStatus);
}
});
This is my ajax code.. Is there any problem with this??