http://expert.csdn.net/Expert/topic/954/954834.xml?temp=.5132715

解决方案 »

  1.   

    两个办法
    1、直接把用户控件从解决方案中拖放到你要放入的页面
    2、在程序代码中加入:
      声明一个放置用户控件的容器
      protected System.Web.UI.WebControls.PlaceHolder PlaceHolder1;
      用LoadControl方法把用户控件装载进来
      Report UIControl = (Report)LoadControl("user/wmqy/report.ascx");
      把用户控件加入容器中:
      PlaceHolder1.Controls.Add(UIControl);
      

  2.   

    除了楼上兄弟说的两种,还有一种
    在HTML里写引用代码!
      

  3.   

    <%@tegister Tagprefix="" TagName="" src="控件名"%>