如何使用jquery问心无愧了页面刷新调用服务器端功能?
问题描述:
如何使用jQuery问心无愧了页面刷新调用服务器端功能?
How to call server side function using jquery wth out page refresh?
答
使用AJAX:
$.get('somepage.aspx', {foo: 'bar'}, function(data){
alert('the page returned this: '+data);
});
然后设置SomePage.aspx页面执行的功能和(如果需要)返回的数据。
Then set up somepage.aspx to execute the function and return the data (if needed).
更多关于jQuery的AJAX看到这样的: http://docs.jquery.com/Ajax
For more on jQuery AJAX see this: http://docs.jquery.com/Ajax