Say I have a custom control - TestControl.ascx
if I had code like this on a page
Say TestControl has a public method called test.. I want to be able to goCode:dim oUserControl as UserControl oUserControl = LoadControl("TestControl.ascx") pnlMain.controls.add(oUserControl)
however, it doesn't seem like it'll work... any input?Code:CType(oUserControl, TestControl).Test()




Reply With Quote