How to find user control of an ASP.NET page inside of event of another user control on that ASP.NET page EDIT: different content placeholders?
问题 I have a ASP.NET page with 2 user controls registered. The first one has only one button in it. The second one is simple text and hidden on default. What I want is to make the second one visible when the button in the first one is clicked (that is on button click event). ASP.NET page: <%@ Page Title="" Language="C#" CodeFile="test.aspx.cs" Inherits="test" %> <%@ Register Src="~/UC_button.ascx" TagName="button" TagPrefix="UC" %> <%@ Register Src="~/UC_text.ascx" TagName="text" TagPrefix="UC" %