How to Pass value between pages using QueryString in Asp.net(C#)

We have two pages Default1.aspx page for pass the value and Default2.aspx for get the value from query string.
 
Default1.aspx
  1. <html lang="en">  
  2. <head id="Head1" runat="server">  
  3. <title>SNJ Diam</title>  
  4. </head>  
  5. <body>  
  6. <form id="form1" runat="server">  
  7. <a href="Default2.aspx?Str=Nikhil">Home</a>  
  8. </form>  
  9. </body>  
  10. </html>  
 Default2.aspx.cs 
  1. protected void Page_Load(object sender, EventArgs e)  
  2.  {  
  3.       if (!IsPostBack)  
  4.       {  
  5.            if (Request.QueryString["Str"] != null)  
  6.            {  
  7.                string Str = Request.QueryString["Str"].ToString();  
  8.                 //here we get value from Str string varriable "Nikhil"  
  9.            }  
  10.        }  
  11. }