title: Pass parameters through URL in C# ASP.net
body: <p>I have the following code for a Button click event where I open a new Tab for a Report and I need to pass a parameter to that from the code behind,</p>
  
  <pre><code>String classname = txt_classname.SelectedValue;
  String teachername = "Some name";
  
  
  string url = "Report_Classwise.aspx";
  string s = "window.open('" + url + "', 'popup_window', 'width=300,height=100,left=100,top=100,resizable=yes');";
  ClientScript.RegisterStartupScript(this.GetType(), "script", s, true);
  </code></pre>
  
  <p>I need to pass classname &amp; teachername to Report_Classwise.aspx page, I have tried setting</p>
  
  <pre><code>string url = "Report_Classwise.aspx?classname='"+classname+"'&amp;teachername='"+teachername+"'";
  </code></pre>
  
  <p>But it didn't work</p>