title: open asp.net page in new window
body: <p>I'm trying to open asp.net page in new window while loading itself. I tried with the following code. But it is opening in the same window not in the new window.</p>
  
  <pre><code>     protected void Page_Load(object sender, EventArgs e)
      {
          if (HttpContext.Current.Request.UserAgent != null)
          {
              var userAgent = HttpContext.Current.Request.UserAgent.ToLower();
  
              if (userAgent.Contains("iphone;"))
              {
                  // iPhone
                  Form.Target = "_blank";
  
              }
  
  
          }
      }
  </code></pre>
  
  <p>Any help is appreciated. thanks !!</p>