Search code examples
asp.netmaster-pagescontrolparameter

How to access code behind on MasterPage for ControlParameter


I'm trying to find this String in my code behind on my masterpage, however since my ControlId="__Page" it's looking for the string on the child page instead of the master page <asp:ControlParameter Name="WhereClause" ControlID="__Page" PropertyName="ViewUserPageNavigationWhereClause"

How do you access the ControlId of the behind code of the masterpage?


Solution

  • try this:

    Bind a ControlParameters to any public page property

    I hope it helps!