title: how to bind session data to a label in ascx without using code behind
body: <p>I am having a popup implemented using divs in asp.net 4.0. I have to show some static text along with a field account number which I am getting from session. Is there any way that i can bind session value to lable in ascx file wihout using code behind. </p>
  
  <p>this is ascx code:</p>
  
  <pre><code> &lt;asp:Button ID="BtnVerifyContinue" runat="server" Text="Continue" OnClick="BtnVerifyContinue_Click" /&gt;
   &lt;div id="addAccVerifyPopUp" runat="server"&gt;
    &lt;div id="popupVerifyContent" style="font-weight: bold; padding: 10px; margin:4px 7px;" runat="server"&gt;
  &lt;asp:Label ID="lblpopUptext" runat="server"&gt;&lt;/asp:Label&gt;
   &lt;br /&gt;
   &lt;/div&gt;
   &lt;/div&gt;
  </code></pre>
  
  <p>I have to show text in label lblpopuptext, something like </p>
  
  <blockquote>
    <p>You have successfully added electric Meter" + <strong>AccountNumber</strong> + "<br/>An
    emails has been sent to the robertm@gmail.com</p>
  </blockquote>
  
  <p>Where I want to get the value of  <strong>AccountNumber</strong> from session.</p>