+5  A: 

It seems you just want:

string username = Request.QueryString["username"];
Noldorin
+2  A: 

You can add a hidden field in your aspx file:

<asp:HiddenField ID="username" runat="server" />

And in your code behind populate it from the request parameter:

protected void Page_Load(object sender, EventArgs e)
{
    if (!IsPostBack)
    {
        username.Value = Request["username"];
    }
}
Darin Dimitrov
Okay, now another question. What is the difference between <code>Request["username"]</code> and <code>Request.QueryString["username"]</code>?
Jergason
Request["username"] looks in both QueryString and Form parameters (GET and POST).
Darin Dimitrov
A: 

This returns value from form elements :

string username = Request.Form["username"];

This returns value from querystring :

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

This looks both form and querystring collections :

string username = Request["username"];
Canavar