title: Using URL to populate Text Box ASP.Net
body: <p>I have made a ASP.net (aspx) website but need help to populate the textbox using the URL so I can send the URL to someone else and when they click/open the link the textbox is already filled out. </p>
  
  <pre><code>&lt;asp:TextBox ID="txtMessages" runat="server" Width="300px"&gt;&lt;/asp:TextBox&gt;
  
          string strMessage = txtMessages.Text;
  </code></pre>
  
  <p>Something like this - </p>
  
  <pre><code>http://localhost/TextInput.aspx?txtMessages=HelloWorld
  </code></pre>
  
  <p>So when the link is pressed the txtMessages textbox already has HelloWorld inserted into it. </p>
  
  <p>I think the URL format would be something like that but it doesn't work.</p>