Okay, I was able to get it to compile this line:
OtherControl control = (OtherControl)Page.FindControl("OtherControl1");
by adding:
<%@ Register Src="OtherControl.ascx" TagName="OtherControl" TagPrefix="uc1"
%>
to the top of my aspx page, but now it doesn't know that the function
belongs to the control:
control.ShowCustomInformation();
//says 'OtherControl' does not contain a definition for
'ShowCustomInformation'
Thanks,
Steven
> How can I call a function in one UserControl from another?
> I have a custom sign in UserControl and another that needs
[quoted text clipped - 18 lines]
>
> Steven
EdisonCPP - 13 Oct 2007 22:39 GMT
I ended up doing a redirect back to the page again so the other control
would have the session variables needed. That worked.
> Okay, I was able to get it to compile this line:
>
[quoted text clipped - 37 lines]
>>
>> Steven