title: How to pass value of GridView from one page to another in asp.net c#?
body: <p>how can i pass value of a Grid View from one page to another? This is my code: </p>
  
  <pre><code>protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
      {
  
          if (e.Row.RowType != DataControlRowType.Header)
          {
          //  //  e.Row.Cells[0].Text = "&lt;a href=" + "javascript:window.open('http://www.google.com')" + " &gt;" + e.Row.Cells[0].Text + "&lt;/a&gt;";
              e.Row.Cells[0].Text = "&lt;a id=\"linkres\"  CssClass=\"dgrid\" runat =\"server\"  href= \"javascript:window.open('Preview.aspx'),_self\" &gt;" + e.Row.Cells[0].Text + "&lt;/a&gt;";
          }
  
      }
  </code></pre>
  
  <p>I need to pass the value of the selected item on GridView and then retrieve to another page.</p>