How do I attach an event handler to an ASP.NET control created at runtime?

后端 未结 5 2002
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-19 10:51

Good morning everybody.

I have a question connected with controls and event handling. Lets say I want to create a LinkButton.

protected          


        
5条回答
  •  渐次进展
    2021-01-19 11:13

    You are right. This is the expected behavior. Page_Load and Page_Init would be the events where you should be adding it.

提交回复
热议问题