protected void Page_Load(object sender, EventArgs e)
{
string UserControlPath = “MyControl.ascx"
Control c = LoadControl(UserControlPath, TextBox1);
PlaceHolder1.Controls.Add(c);
ViewState[“UserControlPath"] = UserControlPath;
}
網址:原文
沒有留言:
張貼留言