protected void Sds_Inserted(object sender, SqlDataSourceStatusEventArgs e) { if (e.Exception == null) { HdnHataTur.Value = "alert alert-success"; HdnHata.Value = "Yetki tanımlandı."; Gv.DataBind(); } else { Snlg_Hata.ziyaretci.ExceptionLogla(e.Exception); e.ExceptionHandled = true; HdnHataTur.Value = "alert alert-danger"; HdnHata.Value = "Beklenmeyen bir hata oluştu."; } }
protected void T1_TextChanged(object sender, System.EventArgs e) { if (YetkiKontrol(pageName + "-Update")) { try { GridViewRow satir = (GridViewRow)((Control)sender).NamingContainer; Gv.UpdateRow(satir.RowIndex, true); HdnHataTur.Value = "alert alert-success"; HdnHata.Value = "Değişiklikler kaydedildi."; } catch (Exception exc) { Snlg_Hata.ziyaretci.ExceptionLogla(exc); HdnHataTur.Value = "alert alert-danger"; HdnHata.Value = "Beklenmeyen bir hata oluştu."; } } }