title: read cookie in javascript , made by asp.net c#code
body: <p>I've made a cookie using <strong>asp.net C# code</strong> and I want to retrieve its value  in <strong>javascript</strong></p>
  
  <p>Here's my <strong>C# code</strong>: </p>
  
  <pre><code>HttpCookie cookie = new HttpCookie("doc1count");
  cookie.Value = "hellonitesh";
  </code></pre>
  
  <p>I am using this <strong>code</strong>:  </p>
  
  <pre><code>var cookie = '@HttpContext.Current.Request.Cookies["doc1count"].Value';
  alert(cookie);
  </code></pre>
  
  <p>but its giving me garbage value.</p>