I got this straight from MS
I don't get what Ctype is trying to cast c1 as... it says type not defined.
Thanks.
Code:
<%@ Reference Control="MyUserControl.ascx" %>
Dim c1 As UserControl = LoadControl("MyUserControl.ascx")
CType(c1, MyUserControl).BackColor = "beige"
Page.Controls.Add(c1)
I don't get what Ctype is trying to cast c1 as... it says type not defined.
Thanks.