Thursday, June 2, 2011

C# Accessing a MasterPage's variables

Place this block of code in Page_Load()

((myMaster)this.Master).strPageTitle = "Some String";

myMaster being the name of the MasterPage class.

No comments:

Related Posts Plugin for WordPress, Blogger...