[英]How to do page initialization functions in ASP.NET AJAX?
There seem to be a number of weird things one could do if one wanted, for hooking up page-load type events.如果需要,似乎有许多奇怪的事情可以做,用于连接页面加载类型的事件。 Here are some specific questions:以下是一些具体问题:
pageLoad
function.我知道自动连接的pageLoad
函数。 Are there any others like it?还有其他类似的吗?Sys.Application.add_init
or Sys.WebForms.PageRequestManager.getInstance().addPageLoading
?我在哪里连接事件,例如来自Sys.Application.add_init
或Sys.WebForms.PageRequestManager.getInstance().addPageLoading
?pageLoad
, if any?如果有的话,前两个和pageLoad
之间有什么区别?pageLoad
to hook up the rest, but this seems kind of hacky.我目前的方法是使用自动连接的pageLoad
来连接其余的,但这似乎有点麻烦。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.