Error with the event handlers of dynamic linkbutton

后端 未结 2 1120
旧巷少年郎
旧巷少年郎 2021-01-21 14:25

I am retrieving data from database depending upon the texboxes input and storing in a datatable , after then from datatable im sending data into dynamic table and displaying tab

2条回答
  •  北海茫月
    2021-01-21 14:53

    You must have to use Page_Init or Page_Load event handler to write code that create controls dynamically. Please read MSDN pages on How to add controls dynamically and ASP.NET Page life cycle articles.

提交回复
热议问题