Asp 2.0动态加载用户控件(Ascx)

Aspx页面:
<asp:PlaceHolder ID="PlaceHolder1" runat="server"></asp:PlaceHolder>
Aspx.Cs代码页:
Control NameControl = Page.LoadControl("~/Uc.ascx");
NameControl.ID = "UserReg";
PlaceHolder1.Controls.Add(CNVPControl);
posted on 2006-03-04 12:49  北极熊,我来了!  阅读(616)  评论(0编辑  收藏  举报