I'm new to experts exchange so please forgive protocol errors.
I want to dynamically specify the content of a DataList ItemTemplate. I researched, learnt how to do ITemplate class etc. Still having diffiiculty.Primary issue is that server events for ItemTemplate controls not firing. (Button ID btn in this case.
Code example has 3 files. TemplateTest aspx and cs should be in TemplateTest folder and MovieCollection.cs in App_Code. See aspx
1) DataList1 works fine as expected.
2) Now try to duplicate in DataList2 using code in QPTemplate class. Clicking buttoms does not result in server events firing. DataList2 also is corrupted after server return.
Help much appreciated.