Hi Guys,
I have hit a wall with the my project... The problem is that i need to get
the type of a usercontrol that is not in the assembly of the page that is
tryiong to call it. if anyone knows of how to fix this please let me know.
c.setComponentProperties(Request.QueryString["pageID"],"1");
classname = c.cSrc;
t = System.Type.GetType(classname);
uc = (UserControl)Activator.CreateInstance(t);
ctl =
uc.LoadControl(System.Configuration.ConfigurationS ettings.AppSettings["virtualPath"]
+ classname.Substring(classname.LastIndexOf(".") + 1) + ".ascx");
t.GetProperty("ComponentID").SetValue(ctl,c.cID.To String(),null);
PlaceHolder phPlaceHolder1 =
(PlaceHolder)this.FindControl("Form1").FindControl ("PlaceHolder1");
phPlaceHolder1.Controls.Clear();
phPlaceHolder1.Controls.Add(ctl);
string mode = "edit";
litContentBegin.Text = "<div id=\"con\"
onMouseOver=\"showEditableArea(this);\"
onMouseOut=\"hideEditableArea(this);\"
onClick=\"editComponent('../siteadmin/components.aspx?mode=" + mode +
"&placeholderID=" + "1" + "&pageID=" +
Request.QueryString["pageID"].ToString() + "');\">";
litContentEnd.Text = "</div>";
Thanks
Josh