C# を使用してサーバー側からユーザー コントロールを含む複数のコンテンツ プレースホルダーを読み込む方法..
現在サーバー側(page_load内)から、次のように1つのユーザーコントロールをロードしています:
ContentPlaceHolder cph = this.Master.FindControl("TopContentPlaceHolder") as ContentPlaceHolder;
UserControl uc = this.LoadControl("~/webusercontrols/topmenu.ascx") as UserControl;
if ((cph != null) && (uc != null))
{
cph.Controls.Add(uc);
}
ページに 8 つのユーザー コントロールをロードする必要があります。どうすれば同じことを達成できますか? 前もって感謝します..