Calling method between user controls

V

Valerian John

I have an ASPX page that uses 2 user controls (ASCX), say UC1 & UC2.
UC1 has a public method that I must call from UC2's code-behind file. Is
there a way to do this?

Thanks,
Val
 
M

Mike Moore [MSFT]

Hi Val,

John Saunders provided an answer in your cross-post: "Sure. If UC2 knows
the ID of UC1, it can do Page.FindControl("uc1ID");"

Thank you, Mike Moore
Microsoft, ASP.NET

This posting is provided "AS IS", with no warranties, and confers no rights.


--------------------
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,077
Messages
2,570,566
Members
47,202
Latest member
misc.

Latest Threads

Top