I don't know if thats a typo but shouldn't the query look like this:
con.Open();
SqlCommand cmd = new SqlCommand("update Details set Name = '" + Name.Text + "',Age=" + Age.Text + " where Sno=" + Sno.Text, con);
cmd.ExecuteNonQuery();
con.Close();
???