ASP.net update query c# : <p>i'm trying to make update query ,i've seen lot of related posts but i can't find the bug in my code... any tips please. here is the code</p>

<pre><code>SqlConnection connection= new SqlConnection(sqlconn.connStr);
connection.Open();
string cinOld = CINone.Value;
SqlCommand cmd = new SqlCommand("update Employee set cin=@cin, 
name=@name, lastname=@lastname, function=@function, birthdate=@birthdate, 
email=@email, numTel=@numTel  where cin = @cina");
var x = 0;
cmd.Parameters.AddWithValue("@cin", cinid.Value);
cmd.Parameters.AddWithValue("@name", HiddenField1.Value);
cmd.Parameters.AddWithValue("@lastname", HiddenField2.Value);
cmd.Parameters.AddWithValue("@function", HiddenField3.Value);
cmd.Parameters.AddWithValue("@birthdate", HiddenField6.Value);
cmd.Parameters.AddWithValue("@email", HiddenField5.Value);
cmd.Parameters.AddWithValue("@numTel", HiddenField4.Value);
cmd.Parameters.AddWithValue("@cina", cinOld);
cmd.ExecuteNonQuery();
</code></pre>
