且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

用C#代码执行Java脚本功能

更新时间:2023-12-05 12:55:04

JavaScript调用服务器端方法的唯一方法是使用带外技术,例如PageMethod. http://www.singingeels.com/Articles/Using_Page_Methods_in_ASPNET_AJAX.aspx [
The only way for the JavaScript to call a server-side method is to use out of band techniques, such as a PageMethod. http://www.singingeels.com/Articles/Using_Page_Methods_in_ASPNET_AJAX.aspx[^]


如Mark所述,您需要使用Page ASP.Net C#中的方法机制.

检查一下:

http://aspalliance.com/1922_PageMethods_In_ASPNET_AJAX.all [
As Mark mentioned you need to use Page Methods mechanism in ASP.Net C#.

Check this out:

http://aspalliance.com/1922_PageMethods_In_ASPNET_AJAX.all[^]

hope it helps :)