ممنون دوست عزیز:چرا ان کد برای username نوشتی!!! فیلد id از نوع int هست!!

cmd.Parameters.AddWithValue("@username",dbtype.int).value = txtuser.Text;