How to read parameter passed from asp.net page, using C#?

asp.net-2.0, c#

Solution

Using your sample URL:

string id = Request.QueryString["id"];

string nam = Request.QueryString["nam"];

Read about Request.QueryString on MSDN. You probably want to convert the `id` value to an int.

Problem

I'm new to ASP.net, how can I read parameters passed from ASP.net page (http://website.com/index.aspx?id=12&nam=eee). Any small example will be appreciated, just something for me to start from.

Original source