2012-06-25 23 views

回答

4

在頁面初始化做

UserControl uc = new UserControl(); 
string ID = "1"; 
string userControl ="UC" + ID + ".ascx"; 
uc = LoadControl(userControl) as UserControl; 
PlaceHolder1.Controls.Add(uc); //some place holder to place controls 
+0

在某些下拉選擇我加載特定用戶的控制,但我知道我通過上面的代碼中加入用戶成功控制,但數據不是renderedto的頁面,可能你告訴我如何做到這一點。 – NoviceToDotNet

相關問題