如何落后火功能的code时,完全显示ASP.NET页面? [英] How to fire a code behind function when ASP.NET page is completely displayed?
本文介绍了如何落后火功能的code时,完全显示ASP.NET页面?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要正确的ASP.NET页面完全显示之后触发后面功能的C#code。结果
有没有编程的事件?结果
如果不是,那该怎么办呢?
I need to trigger a C# code behind function right after an ASP.NET page is completely displayed.
Is there an event to program?
If not, do how to do it?
推荐答案
您可能会想尝试什么是的页面方法 /的WebMethods。看看在 singingeels.com 教程,基本上可以归结为:
What you might want to try is Page Methods/WebMethods. Take a look at the tutorial on singingeels.com, basically it boils down to:
- 响应的 Sys.Application.load 事件触发回调到服务器到页面的方法
- 创建包含要在响应执行的号召逻辑 页面方法
- 响应在
OnSucceeded
/OnFailed
事件发送从页面的方法后面,因为适当的结果。
- Respond to the Sys.Application.load event to trigger a call back to the server to a page method
- Create a page method that contains the logic you wish to execute in response to the call
- Respond to the result sent back from the page method, as appropriate in an
OnSucceeded
/OnFailed
event.
这篇关于如何落后火功能的code时,完全显示ASP.NET页面?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文