页面调用(.aspx)
<%@ Register Src="~/myspace/UC/Friend_Diary.ascx" TagPrefix="uc" TagName="friend" %>
<uc:friend runat="server" UserID="3333" />
后台调用(.cs)
UserControl Member_Friend = (UserControl)LoadControl("UC/Member_Friend.ascx"); right.Controls.Add(Friend_Diary); Member_Friend .UserID = 3333 ; //传参数