简体   繁体   中英

override page PreInit inside Custom server control

我有一个自定义服务器控件,其中包含一个templatefield,当单击out按钮单击该字段时,该字段消失了;何时可以假定Control.Page.OnInit + = new EventHandler(rebind())不执行任何操作来重新绑定控件(在其类内部)?

只需重新绑定控件OnLoad()就可以解决问题。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM