| 
                         | 
                    
                              1 
                        
                        
                                  1
                             
                            这里的评论主题中有一些关于这个问题的相关讨论: http://weblogs.asp.net/scottgu/archive/2006/11/26/tip-trick-how-to-register-user-controls-and-custom-controls-in-web-config.aspx 根据我的经验(通过这个线程确认),在Web站点项目中,对用户控件的编程访问通常是很痛苦的。如果您正在进行动态控件实例化,我认为它加强了使用Web应用程序项目的情况,因此您不需要@reference。 如果你绝望的话,反思可能是解决这一问题的一种方法;你可以从这里开始: http://geekswithblogs.net/aghausman/archive/2009/04/15/how-to-pass-parameters-to-the-dynamically-added-user-control.aspx  |