Passing variable through url.. getting variable name and not value

visuallite

Newcomer
Joined
Oct 29, 2003
Messages
11
Title says it all.

I done this numerous times with asp. Now I'm trying to pass one variable to another aspx page. It is passing the variable name and not the value. I know the variable has a value when I step through the code. Anyone everyhad this problem before.

From page:
string number = lstProject.SelectedItem.Value.Trim();
Response.Redirect("PSS_Report.aspx?ID=number",true);


On Recieving page:
string project_Number = null;

if (Request.QueryString["ID"].Length >0)
{
project_Number = Request.QueryString["ID"];
}
else
{
project_Number= "000-00-01";
}


project_Number becomes "number" instead of "106-01-01"?????????????
 
I tried that also, but get this error

Operator '&' cannot be applied to operands of type 'string' and 'string' :confused:
 
Back
Top