The best way is to raise an event to the page.
I've listed more details on the subject here:
http://SteveOrr.net/faq/PassDataFromUserControl.aspx
--
I hope this helps,
Steve C. Orr,
MCSD, MVP, CSM, ASPInsider
http://SteveOrr.net
"perplexed" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>I have an ascx file (call it usercontrol) that loads into an aspx file
> (parent). Usercontrol contains a hyperlink that when clicked, calls a
> method on parent that will than load text into parent.label1. From
> Usercontrol, I've tried using a linkbutton and its
> OnClick="assemblyname.ParentPage.SomeMethod("my test text")" but that
> doesn't work. Any ideas how this is done?
>
> Thanks.
>