.NET动态加载用户控件并传值的方法

ASPX.CS里的代码:

   VoteChat.GetType().GetProperty("vid").SetValue(VoteChat, model.id.ToString(), null);

以下是ASCX下面的代码

public string vid { get; set; }