title: QueryString to Textbox
body: <p>I have a table tblProfile, which contains fields with Id, Name, Address. I have 2 aspx page, which are Home.aspx and Here.aspx. On my Home.aspx I have used this code to pass the Id in my Here.aspx:</p>
  
  <pre><code>&lt;asp:HyperLink ID="link" runat="server" NavigateUrl="Here.aspx?id={0}" 
              Font-Names="Times New Roman" Font-Size="Medium" &gt;Click here&lt;/asp:HyperLink&gt;
  </code></pre>
  
  <p>In code behind Home.aspx.cs:</p>
  
  <pre><code>protected void Page_Load(object sender, EventArgs e)
  {
      string bID = Request.QueryString["Id"];
      if (string.IsNullOrEmpty(Id))
      {
          Response.Redirect("Here.aspx?", true);
      }
      ViewState["Id"] = Id;
      link.NavigateUrl = String.Format(link.NavigateUrl, Id);
  
  }
  </code></pre>
  
  <p>I don't have any problem with passing the Id to url in 2nd page. But what I want right now is, on my Here.aspx, I have 3 textboxes which supposed to be filled by the Id, Name and Address of the certain Id that passed from the Home.aspx. Tried many but had no luck at all. Any help would be appreciated. By the way, I'm using asp.net with c#.</p>