protected void ListView1_ItemCommand(object sender, ListViewCommandEventArgs e) { int id = Convert.ToInt32(ListView1.DataKeys[e.Item.DataItemIndex].Value); if (e.CommandName == "sil") { ik ur = ik.Select(id); if (ur == null) { Labelbilgi.Text = "<p class='msg error'><b>KAYIT BULUNAMADI !</b></p>"; return; } //ur.Aktif = false; //Result<int> sonuc = ur.Update(); Result <int> sonuc = ur.Delete(); if (sonuc.HasError) { Labelbilgi.Text = "<p class='msg error'><b>Hata :" + sonuc.CustomErrorMessage + "</b></p>"; return; } else { Labelbilgi.Text = "<p class='msg done'><b>BAŞARIYLA SİLİNDİ...</b></p>"; AccessDataSource1.Select(DataSourceSelectArguments.Empty); ListView1.DataBind(); } } }
// Use this for initialization void Start() { health = 5; controller = GetComponent <CharacterController>(); //cameracontrol.autoaim = true; gravity = 0.01f; walkspeed = 0.01f; animator = GetComponent <Animator>(); jumpdelay = 5; jumpready = true; rollready = true; kin = GetComponent <ik>(); target = gameObject.transform.position; crouchready = true; // Time.timeScale = 0.2f; }