protected void btnSave_Click(object sender, EventArgs e) { int id = Int32.Parse(lblID.Value); int musID = Int32.Parse(custIDHdn.Value); string aciklama = txtAciklama_4.Text; int tip = Int32.Parse(drdTip.SelectedValue); string konu = txtBaslik_2.Text; kullanici_repo kul = KullaniciIslem.currentKullanici(); using (radiusEntities dc = MyContext.Context(kul.Firma)) { ServisIslemleri s = new ServisIslemleri(dc); s.servisGuncelleR(id, musID, aciklama, tip, konu, User.Identity.Name); gosterHepsi(kul, dc); //GridView1.DataBind(); } System.Text.StringBuilder sb = new System.Text.StringBuilder(); sb.Append(@"<script type='text/javascript'>"); sb.Append(" alertify.success('Servis bilgisi güncellendi!');"); sb.Append("$('#editModal').modal('hide');"); sb.Append(@"</script>"); ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "EditHideModalScript", sb.ToString(), false); //ScriptManager.RegisterStartupScript(this, GetType(), "myFunction", "myFunction();", true); }