Generating output on query string
<p>I have an ASP.NET website in which I have to perform a certain operation. I have  to displaying the ID's from the DB on menu.aspx page in this format {1:2:3:4}. The above format is not a problem and can be just be written with </p>

<pre><code>Response.Write("{");
for.. loop(until last ID)
{
Response.Write(query to fetch ID's) + ":";
}
Response.Write("}");
</code></pre>

<p>But here comes my question. I have to generate this ID when the user types the query within the URL somewhat like <code>http://localhost/website/menu.aspx?search=yes</code></p>

<p>Note that I am saying <strong>that user will type this URL</strong>. I know that query string can pass the values from one form to another but this is a single web form and if I attach this <code>?search=yes</code>, it should return the result. How can this be done?</p>

<p>This is somewhat similar to searching in Google. For eg: I can type <code>www.google.com/search?Stack</code> and I get the results</p>
