title: getting directed to ASP.NET home page on browser
body: <p>I am trying to run the following HTTP POST API Call using ASP.NET on Visual studio 2013. I created a new web application project as mentioned <a href="http://msdn.microsoft.com/en-us/library/aa983452%28v=vs.90%29.aspx" rel="nofollow noreferrer">here</a> </p>
  
  <pre><code>using System;
  using System.IO;
  using System.Net;
  using System.Security.Cryptography;
  using System.Text;
  
  public partial class _Default : System.Web.UI.Page
  {
      protected void Page_Load(object sender, EventArgs e)
      {
          CreateNewAPICall("test api abc");
      }
      private object CreateNewAPICall(string apiDesc)
      {
          object result = null;
          var accessKey = "myaccesskey";
          var secretKey = "mysecretkey";
          var uRLapiList = "http://myurl.com";
          byte[] bytes = Encoding.UTF8.GetBytes("apiListDesc=" + apiDesc);
          var method = "POST";
          var timeString = DateTime.UtcNow.GetDateTimeFormats()[104];
          var signature = GetSignature(secretKey, method, timeString);
          var authorization = accessKey + ":" + signature;
          HttpWebRequest request = CreateWebRequest(uRLapiList, "POST", bytes.Length, timeString, authorization);
          using (var requestStream = request.GetRequestStream())
          {
              requestStream.Write(bytes, 0, bytes.Length);
          }
  
          using (var response = (HttpWebResponse)request.GetResponse())
          {
              if (response.StatusCode == HttpStatusCode.OK)
              {
                  var responseReader = new StreamReader(request.GetResponse().GetResponseStream());
                  // Return List api Data
                  result = responseReader.ReadToEnd();
              }
          }
  
          return result;
      }
  
      private HttpWebRequest CreateWebRequest(string endPoint, string method, Int32 contentLength, string timeString, string authorization)
      {
          // Some code here
      }
  
      private string GetSignature(string secretKey, string method, string timeString)
      {
          // Some code here
      }
  
      private byte[] HMAC_SHA1(string signKey, string signMessage)
      {
          // Some code here
      }
  
      private string CreateSignature(string stringIn, string scretKey)
      {
          // Some code here
      }
  }
  </code></pre>
  
  <p>Right now, I am confused as to where to put this file in the "Solution Explorer" in order to 
  run the file and get the output on my browser?</p>
  
  <p>Right now I have this code inside <code>"Models--&gt;Class1.cs"</code> directory as shown in the image below:</p>
  
  <p><img src="https://i.stack.imgur.com/wqNEh.jpg" alt="enter image description here"></p>
  
  <p>So, when I press <code>F-5</code> key, I am getting directed to the home page of the ASP.NET with the URL <code>http://localhost:4439/</code></p>
  
  <p>Do I need to make any changes here?</p>
  
  <p><img src="https://i.stack.imgur.com/O0szq.jpg" alt="enter image description here"></p>