MasterPage Property Woes
For some reason I'm not able to access public properties that I declare in a MasterPage, even though it is supposed to work. So, I discovered a way around it was to use FindControl. The example below demonstrates accessing a Literal control with an ID of litText in a MasterPage file.
VB.NET
Dim
lit
As
Literal
lit =
Me
.Master.FindControl(
"litText"
)
C#
Literal
lit;
lit = (
Literal
)
this
.Master.FindControl(
"litText"
);