User1552295847 posted
Hi Folks,
Summary: I am trying to design a scenario where, pulling information (random columns and random columns number) from SQL, also based on column data type, binding different type of controls (Label, TextBox, etc...) to the Repeater.
- In the ASPX page, took only repeater control server tag.
- Written a CenterTemplate class inherited from "System.Web.UI.ITemplate", where i am writing code to initialize Header, Footer and Item template in "InstantiateIn(System.Web.UI.Control container)"
- based on item data type i am binding different controls (Lable, TextBox, etc...) to placeholder control (reference example:
https://msdn.microsoft.com/en-us/library/0e39s2ck.aspx)
- on ASPX page load, pulling information from SQL server and binding it to the control.
Page is getting loaded as expected, but the problem statement is, I am not able to get the control back on a button click event to save the updated data to SQL, it is showing control collection count is 0.
do let me know for more clarification.
Regards,
Avinash