title: URL Referer not working on pop up windows
body: <p>I have two pages namely <code>www.abc.com/pg1.aspx</code> and <code>www.abc.com/pg2.aspx</code></p>
  
  <pre><code>pg1.aspx
  response.redirect("www.abc.com/pg2.aspx");
  
  pg2.aspx
  string url_refer = Request.UrlReferrer.ToString();
  </code></pre>
  
  <p><code>UrlReferrer</code> is working fine.</p>
  
  <pre><code>pg1.aspx
  &lt;a href='#' onclick=\"window.open('www.abc.com/pg2.aspx', 'windowname2', 'width=1014, height=709, screenX=1, left=1, screenY=1, top=1, status=no, menubar=no, resizable=no, toolbar=no'); return false;\"&gt;
  
  pg2.aspx
  string url_refer = Request.UrlReferrer.ToString();
  </code></pre>
  
  <p><code>UrlReferrer</code> is <code>NULL</code></p>
  
  <p>I googled for the solution. but none of them are leading to the solution i want.</p>
  
  <p>My problem is if the window is with no menubar, status or toolbar, <code>UrlReferrer</code> is <code>NULL</code></p>
  
  <p>if not, <code>UrlReferrer</code> has the previous page's URL.</p>
  
  <p>I also tried <code>url_refer = Request.ServerVariables["HTTP_REFERER"].ToString();</code> instead of <code>string url_refer = Request.UrlReferrer.ToString();</code>. </p>
  
  <p>the result is the same.</p>
  
  <p>Any solution?</p>