You need to strongly type the user control when you load it. I'm going to do
it in C# as I haven't used VB in a few years.
MySite.MyControl uc =
(MySite.MyControl)me.loadcontrol("myusercontrol.as cx");
uc.MyFunction();
You could also use reflection to do it, but reflection can be a lot slower.
--
Hope this helps,
Mark Fitzpatrick
Former Microsoft FrontPage MVP 199?-2006
"Bert" <be****@gmail.comwrote in message
news:eN*************@TK2MSFTNGP06.phx.gbl...
Hi
How can you call a function on a user control(.ascx) ? what is the syntax
for this?
thanks
Bert