如何使用jquery wth out page refresh调用服务器端函数?
使用AJAX:
$.get('somepage.aspx', {foo: 'bar'}, function(data){
alert('the page returned this: '+data);
});
Run Code Online (Sandbox Code Playgroud)
然后设置somepage.aspx来执行该函数并返回数据(如果需要).
有关jQuery AJAX的更多信息,请参阅:http://docs.jquery.com/Ajax