Fernando,
You can read my article on the topic here:
http://openmymind.net/communication/index.html
But you've pretty much done it the right way...the method must be public -
there's nothing bad about this. if you want, you can make it internal (c#)
or friend (vb.net) which will make it only accessible in your assembly - but
that's only really necessary if (a) you know what the hell i'm talking about
and (B) you are building some kind of api (and your API shouldn't be located
in your codebehind anyways).
karl
--
MY ASP.Net tutorials
http://www.openmymind.net/
"Fernando Lopes" <fe*******@remove.terra.com.br> wrote in message
news:ua*************@TK2MSFTNGP14.phx.gbl...
Hi.
How can I access a method in the code behind of a user control from the
code behind of a page or in the code behind of another usercontrol.
I change the method to public and now I access from the Page.
But, there is any problem using this way? (public method)
Anyone knows another way?
How can I access from another usercontrol?
Thanks.
Fernando