I'm using one Sublayout (Sitecore) and have a placeHolder that currently holds 2 webcontrols. I want to access the Label from one Webcontrol to the other Webcontrol. Do i have to find the Label recursively or can i just access the Label on another way? I tried different methods like:
this.Page.Findcontrol this.Parent.Findcontrol etc..
Label lblSearchTerm = (Label)this.Parent.FindControl("lblSearchTerm");
Label lblResults = (Label)this.Parent.FindControl("lblResults");
Wouldn't give me any result as being Label lblSearchTerm = null. I hope someone here knows a way to fix this.