示例#1
0
 protected void SdsSbl_Inserted(object sender, SqlDataSourceStatusEventArgs e)
 {
     if (e.Exception == null)
     {
         HdnHataTur.Value = "alert alert-success";
         HdnHata.Value    = "Şablon oluşturuldu.";
         GvSbl.DataBind();
     }
     else
     {
         Snlg_Hata.ziyaretci.ExceptionLogla(e.Exception);
         e.ExceptionHandled = true;
         HdnHataTur.Value   = "alert alert-danger";
         HdnHata.Value      = "Beklenmeyen bir hata oluştu.";
     }
 }
示例#2
0
 protected void T1_TextChanged(object sender, System.EventArgs e)
 {
     if (YetkiKontrol(pageName + "-Update"))
     {
         try
         {
             GridViewRow satir = (GridViewRow)((Control)sender).NamingContainer;
             GvSbl.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.";
         }
     }
 }