As a non-programmer I am trying to get learn c# by creating sample "applications". In my sample I have the following in the code-behind file:<BR>private void Page_Load(object sender, System.EventArgs e)<BR>{<BR>string sUsername = HttpContext.Current.Request.ServerVariables["AUTH_USER"]; <BR>Label1.Text=sUsername;<BR>}<BR>I get a compilation error like so:<BR><BR>Compiler Error Message: CS0103: The name 'sUsername' does not exist in the class or namespace 'ASP.WebForm1_aspx'<BR><BR>Source Error:<BR><BR> <BR><BR>Line 12: <form id="Form1" method="post" runat="server"><BR>Line 13: <BR>Line 14: <asp:Label id="Label1" style="Z-INDEX: 101; LEFT: 124px; POSITION: absolute; TOP: 67px" runat="server" Text="<%# sUsername %>"><BR>Line 15: </asp:Label><BR>Line 16: </form><BR> <BR>How do I create the name 'sUserName' in the aspx page. I would imagine the codebehind file takes care of this? What am I doing wrong?varibles used in the code behind page are in a different scope than ones in the <% %> tags.<BR><BR>There are 2 scope levels involved.<BR><BR>anything between <script runat=server> tags or codebehind pages is not accessable by using the <% %> markers.<BR><BR>By using <b>Label1.Text=sUsername;</b> you have already set the text for the label, just remove the <%= %> from your .aspx pageThanks