Help with user controlhttp://forums.asp.net/t/1126248.aspx/1?Help+with+user+controlTue, 26 Jun 2007 05:07:31 -040011262481772296http://forums.asp.net/p/1126248/1772296.aspx/1?Help+with+user+controlHelp with user control <p>&nbsp;</p> <p>Hey all,</p> <p>I have created a custom user control that will be&nbsp;resused on several pages in an application. The user control is unique because to start with, it contains no controls or content. All the content is created dynamically. Herein lies the problem I am having. On a normal page in the app - in the code behind - I am dynamically creating an instance of my user control. In the page load method of the user control, I am dynamically creating content. </p> <p>Here is&nbsp;a simplified scenario of what I am trying to create inside&nbsp;the user control:&nbsp;1 table with 1 row&nbsp;that contains&nbsp;1 cell that contains a text box and a masked edit extender. Everything was working fine until I added a masked edit extender for the text box. For some reason, when I add a dynamic masked edit extender to the cell.controls collection, at runtime, the masked edit extender cannot find the targetcontrol (which I specified correctly). Any ideas what I'm doing wrong or how to accomplish this?<br> <br> Thanks,<br> Mike<br> <font color="#008000" size="2"></p> </font> 2007-06-26T05:07:31-04:00