title: Get MasterPage Hiddenfield Value From a User Class
body: <p>Is there a way to get a value I am storing in a Master Page hidden field from a User Class which I created and placed in the App_Code folder of my ASP.Net 2.0 Application?</p>
  
  <p>Some examples would preferably in VB.Net is highly appreciated.</p>
  
  <p>Thanks.</p>
  
  <p>To give further details, assume the following:</p>
  
  <p>MasterPage.Master
  MasterPage.Master.vb</p>
  
  <p>MyPage.aspx
  Mypage.aspx.vb</p>
  
  <p>IN the app_code folder, add a new class, say TESTClass.</p>
  
  <p>I have placed some logic in master page.  MyPage.aspx uses the Masterpage.master as its master page.  In the master page, the logic which I did stores a value into a hidden field.</p>
  
  <p>in my TestClass, how do I access the master page hidden field?</p>
  
  <p>Please take note that TestClass is NOT a user control but a user defined class, which contains some Business-Specific logic which is accessed by myPage.aspx.vb.</p>
  
  <p>I tried ScarletGarden's suggestion but it did not seem to get the Masterpage Hiddenfield which I need to get the value.</p>