View Full Version : Passing data to a parent control. ASP.NET

10-19-2003, 04:15 PM
On a page I have a usercontrol (uc1) and in uc1 I have another usercontrol (uc2). uc2 needs to pass data to a property of uc1. How can I do this? I tried the following but it said 'The specified cast is not valid'.

Dim p as Zword.UC1 = me.Parent 'line that drew error.
p.MyProperty = whatever

Thanks for your help.

10-19-2003, 04:54 PM
I never use usercontrols but this link could help read more .... (http://www.ftponline.com/vsm/2002_07/online/aspnet_jgoodyear_07_22_02/)