Dynamically created controls causing Null reference

后端 未结 5 1601
情深已故
情深已故 2021-01-07 15:26

I am trying to dynamically create controls and give them properties during run time.

I have put my code inside the Page_Init event, when I run my website I can see m

5条回答
  •  借酒劲吻你
    2021-01-07 15:56

    I suggest that you declare your controls outside the page_int and do your initialization in the init then use them with their name instead of find control.

提交回复
热议问题