title: open page in new tab asp.net
body: <p>I am writing a project using ASP.NET C#.</p>
  
  <p>I want to implement linkbutton click event to open new page in a new tab, but before I have to create new session variable. I have tried this:</p>
  
  <pre><code>protected void LinkButton_Click3(Object sender, EventArgs e)
          {
              string p_id = (sender as LinkButton).CommandArgument;
              Session["p_id"] = p_id;
              Response.Write("&lt;script type='text/javascript'&gt; window.open('details.aspx','_blank'); &lt;/script&gt;");
  
          }
  </code></pre>
  
  <p>But it doesn't work anyway.</p>