How can i bind data to the content of my dynamically created user control in ASP.net?

Hyphine

New Member
I have an asp.net listview. I would like to be able to modify only a part of it's itemtemplate dynamically... so i have created some user controls, and i wish to load the appropriate control into a placeholder (in my listview's itemtemplate), depending of some conditions. However, it seems that when I try to dynamically load a user control, the Eval("Myfield") statement won't work. For some reasons, it's working when I load the user control directly in my code, but that's not what i want to do.
 
Back
Top