I want to programatically access a HyperLink control within a master page in order to change the control's NavigateUrl value. The following code is in the master page:
HyperLink PrintLink = (HyperLink)Master.FindControl("PrintLink");
gets me a NullReferenceException. The control exists; here is the code for the control (also in the master page):
<
asp:HyperLink ID="PrintLink" runat="server" CssClass="navigation" NavigateUrl="#">Print</asp:HyperLink>
Why can't it see the control?