i’m generating controls dynamically on my asp.net page by xslt transformation from an xml file. i will need to reference these controls from code behind later. i would like to add these references to the list/hashtable/whatever during creation (in xslt file i suppose) so that i could reach them later and i have no idea how to do this. i will be absolutely grateful for any suggestions, agnieszka
i’m generating controls dynamically on my asp.net page by xslt transformation from an xml
Share
Once you have transformed your XML using XSLT, you could pass the output to the ASP.Net ParseControl method and it will return your controls ready to use. For example this code will place two buttons on the page: