Saturday, February 6, 2010

C# .Net: How to reference another user control on the same page?

On my page, I have 2 user controls. How do I reference the first user control from the second user control...?!?





More info:


On the first user control, I have an image. On the second user control, I have a link that, when clicked, needs to update the image in the first user control. And before you answer, No, I cannot simply move the link into the first control due to how we're structuring the page.C# .Net: How to reference another user control on the same page?
Just loop through your page's Control collection or use the Page's FindControl() method.

No comments:

Post a Comment