title: Displaying C# variable on ASP.NET webpage
body: <p>I am designing a website in ASP.NET, and I am integrating the Steam API into it. I am using DotNetOpenAuth for the authentication. I am confused as to how I am to access and display the variable <code>responseURI</code> (Line 22). Whenever I try to display the variable on the webpage using this:</p>
  
  <pre><code>&lt;p&gt;&lt;%=responseURI%&gt;&lt;/p&gt;
  </code></pre>
  
  <p>I get a message stating:</p>
  
  <blockquote>
    <p>The name 'responseURI' does not exist in the current context.</p>
  </blockquote>
  
  <p>Here is my C#</p>
  
  <pre><code>using DotNetOpenAuth.OpenId.RelyingParty;
  using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Web;
  using System.Web.UI;
  using System.Web.UI.WebControls;
  
  public partial class loginPage : System.Web.UI.Page
  {
      protected void Page_Load(object sender, EventArgs e)
      {
          var openid = new OpenIdRelyingParty();
          var response = openid.GetResponse();
  
          if (response != null)
          {
              switch (response.Status)
              {
                  case AuthenticationStatus.Authenticated:
                      // do success
                      var responseURI = response.ClaimedIdentifier.ToString();
                      break;
  
                  case AuthenticationStatus.Canceled:
                  case AuthenticationStatus.Failed:
                      // do fail
                      break;
              }
          }
          else
          {
              using (OpenIdRelyingParty openidd = new OpenIdRelyingParty())
              {
                  IAuthenticationRequest request = openidd.CreateRequest("http://steamcommunity.com/openid");
                  request.RedirectToProvider();
              }
          }
      }
  }
  </code></pre>