protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e) { if (e.CommandName.Equals("del")) { string confirmValue = Request.Form["confirm_value"]; List <string> liste = confirmValue.Split(new char[] { ',' }).ToList(); int sayimiz = liste.Count - 1; string deger = liste[sayimiz]; if (deger == "Yes") { int hesapID = Convert.ToInt32(e.CommandArgument); using (radiusEntities dc = MyContext.Context(KullaniciIslem.firma())) { ServisIslemleri s = new ServisIslemleri(dc); s.serbest_sil(hesapID); ortak(dc); } System.Text.StringBuilder sb = new System.Text.StringBuilder(); sb.Append(@"<script type='text/javascript'>"); sb.Append(" alertify.error('Kayıt silindi!');"); sb.Append(@"</script>"); ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "EditHideModalScript3", sb.ToString(), false); } else { System.Text.StringBuilder sb = new System.Text.StringBuilder(); sb.Append(@"<script type='text/javascript'>"); sb.Append(" alertify.error('" + deger + "');"); sb.Append(@"</script>"); ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "EditHideModalScript3", sb.ToString(), false); } } }