How do I add a user control on page load dynamically in ASP.NET?
I have a div with ID=\"contentData\" and few controls
ID=\"contentData\"
Use the Page's LoadControl method to do this programmatically:
http://msdn.microsoft.com/en-us/library/t9ecy7tf.aspx
Also, if your intention is to add it to the div, make sure you make that div a server control by adding runat="server" in the markup