Hello! Please help me solve 2 questions.
1) There is a page of the site where asp:Label . In the northern part, a reference is made to the class in which processing is performed. How to access the Text - Label'а property from this class?
2) There is a master page on which asp:Label is also located. How to change the Text property of this label from the server side of the child page?
Assumption: Use the object-oriented approach and do it through get, set . It just may be that both questions need to be taken into account, which leads to the need to refer from the class (to which I leave the child page) to the Label'а property, which is located on the master-странице . As a beginner in this field, it scares me. In addition, I hope that there are other ways to interact.
UPD:
I am trying to make a call to the element on the master-page from the child page.
Element:
<asp:Label ID="Access_error" runat="server" Text="test53"></asp:Label> Appeal:
Label lbl_TitlePage = Page.Master.FindControl("Access_error") as Label; lbl_TitlePage.Text = "THE KEY QUESTIONS"; I check through the debugger and see that lbl_TitlePage = null .
Although, if you look at the Master properties during debugging, then he sees Label perfectly

FindControl- only looks for controls that belong directly to this parent. You need to do this recursively. - Igor