title: Passing int type variable value from Content Page(aspx) to masterpage and usercontrols
body: <p>I need to pass variable from content page to master page and usercontrol in <code>asp.net webforms</code></p>
  <p><code>MasterPage.aspx</code> being used by below content page.</p>
  <pre><code>Default.aspx
  Aboutus.aspx
  contactus.aspx
  </code></pre>
  <p>If i am not wrong then page execution happens as</p>
  <pre><code>Content Page
  Master Page
  User Control
  </code></pre>
  <p>for this reason i want to define variable let us say page_id in <code>default.aspx</code>, <code>About.aspx</code>, <code>contactus.aspx</code>...</p>
  <p>So that I can get the value of page_id itself on content page as pass it to master page and user control if required.</p>
  <p>I am not sure how can i pass a variable <code>page_id</code> value to another variable name also <code>page_id</code> in master page. I need to do this as I am not allowed to use any querystring or url routing value for page_Id</p>
  <p>I need to pass variable not the value from any <code>text-box</code> IS IT POSSIBLE or i have to use a <code>hidden-field</code> for this</p>
  <p><img src="https://i.stack.imgur.com/8gMy0.png" alt="enter image description here" /></p>
  <p>I need to pass value as show in image below.</p>