.NET动态加载用户控件并传值的方法时间:2023-03-09 02:07:25 ASPX.CS里的代码: VoteChat.GetType().GetProperty("vid").SetValue(VoteChat, model.id.ToString(), null); 以下是ASCX下面的代码 public string vid { get; set; }