0
More info:
I have found out how to do it, but I have a problem
[CODE]
Type t;
foreach (Control oPart in this.Controls) // Loop through the controls on the page.
{
t = typeof(SMDCMS.WebPart);
if (t.FullName.IndexOf("WebPart")>0)
{
PropertyInfo[] p = t.GetProperties();
foreach(PropertyInfo y in p)
{
if(y.Name == "Channel")
{
y.SetValue("Channel", c, null); //Here is the problem!!
}
}
}
}
[/CODE]
get this error:
Object does not match target type.
Please help!
Thanks
Lee