böyle bir dene istersen:
sorgu.CommandText = "update Tablo1 set onay = 1 where onaykodu = '"+ Request.QueryString("onaykodu") +"'";