Asp.net+C# | A weird problem with a variable

Regards,

I have a weird problem with a variable in asp.net + C#.

Those lines works:


DataTable customer = service.GetCustomerDT(1);
dataRow["CustomerName"] = customerDT.Rows[0]["FullName"];

But those lines does not found anything even though the value of the variable is “1” too:


int customerID = int.Parse(gridViewRowVar.Cells[0].Text.ToString());
DataTable customerDT = service.GetCustomerDT(customerID);
dataRow["CustomerName"] = customerDT.Rows[0]["FullName"];

The big surprise, as I said before, is that:
I know that the value of the varible is also 1, and to check it I tried:

[SIZE=2]
Response.Redirect(customerID.Equals(1).ToString());
[/SIZE]

It does return True.

But somehow the previous lines doesn’t work.

Thanks to my experience I think it’s essential “clean” the varible before using it,
but I don’t know how to do this. In asp I think I have used something like: “Clng”.

Did u understand me?
Could u help me plz?
Thanks!