title: how to display a session value in an ASP textbox
body: <p>A basic question but there is no such question on Stack Overflow (for ASP.NET)</p>
  
  <pre><code>&lt;asp:TextBox ID="txtUserName" runat="server" Text=&lt;% Session["UserName"] %&gt; &gt;
  </code></pre>
  
  <p>I did this a week ago, now something is wrong. It should be simple. I also tried &lt;%= %>, it did not work either. Putting a single quote around '&lt;% %>' gives binding error. Help</p>