开发者

override page PreInit inside Custom server control

开发者 https://www.devze.com 2023-01-09 14:05 出处:网络
I have custom server control contains templatefield when an out button clicked the field disappear , when can I rebind the control (inside its cl开发者_C百科ass) supposed that Control.Page.OnInit+=new

I have custom server control contains templatefield when an out button clicked the field disappear , when can I rebind the control (inside its cl开发者_C百科ass) supposed that Control.Page.OnInit+=new EventHandler(rebind()) doesn't do any things ?


just rebind the control OnLoad() will solve the problem.

0

精彩评论

暂无评论...
验证码 换一张
取 消