Control customerInfoCard = Page.LoadControl("CustomerInfoCard.ascx");
customerInfoCard.GetType().GetProperty("CustomerID").SetValue(customerInfoCard, ”..." , null);}
User Control 是這樣子:public string CustomerID
{
set
{
this._customerID = value;
...
}
}
沒有留言:
張貼留言