文件名称:CallbackEventHandler
介绍说明--下载内容均来自于网络,请自行研究使用
ICallbackEventHandler接口无刷新源码
功能介绍:
在 ASP.NET 网页的默认模型中,用户会与页交互,单击按钮或执行导致回发的一些其他操作。此时将重
新创建页及其控件,并在服务器上运行页代码,且新版本的页被呈现到浏览器。但是,在有些情况下,需
要从客户端运行服务器代码,而不执行回发。如果页中的客户端脚本维护一些状态信息(例如,局部变量值)
,那么发送页和获取页的新副本就会损坏该状态。此外,页回发会导致处理开销,这会降低性能,且会让用户
不得不等待处理并重新创建页。
可以使用ICallbackEventHandler接口,使其能执行客户端回调。在客户端回调中。
源码使用了列举了几个demo示例,对学习着很有帮助
注意:
开发环境为Visual Studio 2010
-ICallbackEventHandler interfaces without refresh sourceFeatures: In the default model ASP.NET Web page, the user will interact with the page, click the button or perform some other action cause postback. The weightCreate a new page and its controls, and run the code page on the server, and the new version of the page is rendered to the browser. However, in some cases, the needRun server code the client without performing a postback. If the client scr ipt page maintains some state information (for example, local variable values)Then send pages and obtain a new copy of the page will damage the state. In addition, the page was posted back will lead to processing overhead that can degrade performance and let usersWe have to wait for processing and re-create the page. You can use ICallbackEventHandler interface so that it can perform client callbacks. In a client callback. Use the source cited several demo examples of helpful learningnote: Development environment for Visual Studio 2010
功能介绍:
在 ASP.NET 网页的默认模型中,用户会与页交互,单击按钮或执行导致回发的一些其他操作。此时将重
新创建页及其控件,并在服务器上运行页代码,且新版本的页被呈现到浏览器。但是,在有些情况下,需
要从客户端运行服务器代码,而不执行回发。如果页中的客户端脚本维护一些状态信息(例如,局部变量值)
,那么发送页和获取页的新副本就会损坏该状态。此外,页回发会导致处理开销,这会降低性能,且会让用户
不得不等待处理并重新创建页。
可以使用ICallbackEventHandler接口,使其能执行客户端回调。在客户端回调中。
源码使用了列举了几个demo示例,对学习着很有帮助
注意:
开发环境为Visual Studio 2010
-ICallbackEventHandler interfaces without refresh sourceFeatures: In the default model ASP.NET Web page, the user will interact with the page, click the button or perform some other action cause postback. The weightCreate a new page and its controls, and run the code page on the server, and the new version of the page is rendered to the browser. However, in some cases, the needRun server code the client without performing a postback. If the client scr ipt page maintains some state information (for example, local variable values)Then send pages and obtain a new copy of the page will damage the state. In addition, the page was posted back will lead to processing overhead that can degrade performance and let usersWe have to wait for processing and re-create the page. You can use ICallbackEventHandler interface so that it can perform client callbacks. In a client callback. Use the source cited several demo examples of helpful learningnote: Development environment for Visual Studio 2010
(系统自动生成,下载前可以参看下载内容)
下载文件列表
使用ICallbackEventHandler实现无刷新.txt