OK, on my Master Page I have a control:
<a id="hypTabAccou nt" href="#" runat="server"> Account</a>
Now, in the code-behind (Root.master.vb ) I can refer to it simply thus:
hypTabAccount.I nnerText = "blah"
Now, what I want is the same in a content page that uses the Master Page. I
have a Master Type in my Content page:
<%@ master masterpagefile= "~/Root.master" language="VB"
codefile="Home. master.vb" inherits="Home_ Master" %>
<%@ mastertype virtualpath="~/Root.master" %>
I can access *properties* on the Master Page in a strongly typed way, but..
Is there a way of accessing *controls* in strongly-typed way (any solution
including some crazy reflection code is permissible) without using
FindControl?
Thanks!
<a id="hypTabAccou nt" href="#" runat="server"> Account</a>
Now, in the code-behind (Root.master.vb ) I can refer to it simply thus:
hypTabAccount.I nnerText = "blah"
Now, what I want is the same in a content page that uses the Master Page. I
have a Master Type in my Content page:
<%@ master masterpagefile= "~/Root.master" language="VB"
codefile="Home. master.vb" inherits="Home_ Master" %>
<%@ mastertype virtualpath="~/Root.master" %>
I can access *properties* on the Master Page in a strongly typed way, but..
Is there a way of accessing *controls* in strongly-typed way (any solution
including some crazy reflection code is permissible) without using
FindControl?
Thanks!
Comment