當前位置: 首頁>>代碼示例>>C#>>正文


C# WebControls.GridViewDeletedEventArgs類代碼示例

本文整理匯總了C#中System.Web.UI.WebControls.GridViewDeletedEventArgs的典型用法代碼示例。如果您正苦於以下問題:C# GridViewDeletedEventArgs類的具體用法?C# GridViewDeletedEventArgs怎麽用?C# GridViewDeletedEventArgs使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


GridViewDeletedEventArgs類屬於System.Web.UI.WebControls命名空間,在下文中一共展示了GridViewDeletedEventArgs類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: CategoryGridView_RowDeleted

 protected void CategoryGridView_RowDeleted(object sender, GridViewDeletedEventArgs e)
 {
     if (e.Exception != null)
     {
         e.ExceptionHandled = true;
     }
 }
開發者ID:chutinhha,項目名稱:logic-university-stationery-store-inventory-system,代碼行數:7,代碼來源:Categories.aspx.cs

示例2: LocationGridView_RowDeleted

 protected void LocationGridView_RowDeleted(object sender, GridViewDeletedEventArgs e)
 {
     if (e.Exception == null)
     {
         ShowMessageBox("Location successfully deleted");
     }
 }
開發者ID:kaiss78,項目名稱:olems,代碼行數:7,代碼來源:LocationManagement.aspx.cs

示例3: GV_RouteList_RowDeleted

 protected void GV_RouteList_RowDeleted(object sender, GridViewDeletedEventArgs e)
 {
     this.FV_Route.Visible = false;
     this.lblMessage.Text = "Delete successfully";
     this.lblMessage.ForeColor = Color.Green;
     BindList();
 }
開發者ID:senolakkas,項目名稱:ferrybooking,代碼行數:7,代碼來源:frmRoute.aspx.cs

示例4: ExamGridView_RowDeleted

 protected void ExamGridView_RowDeleted(object sender, GridViewDeletedEventArgs e)
 {
     if (e.Exception == null)
     {
         ShowMessageBox("Exam and questions of the exam are successfully deleted");
     }
 }
開發者ID:kaiss78,項目名稱:olems,代碼行數:7,代碼來源:ExamManagement.aspx.cs

示例5: GV_VesselList_RowDeleted

 protected void GV_VesselList_RowDeleted(object sender, GridViewDeletedEventArgs e)
 {
     //this.FV_Vessel.ChangeMode(FormViewMode.ReadOnly);
     this.FV_Vessel.Visible = false;
     this.lblMessage.Text = "Delete successfully";
     this.lblMessage.ForeColor = Color.Green;
     BindList();
 }
開發者ID:senolakkas,項目名稱:ferrybooking,代碼行數:8,代碼來源:frmVessel.aspx.cs

示例6: grdProductPackage_RowDeleted

 protected void grdProductPackage_RowDeleted(object sender, GridViewDeletedEventArgs e)
 {
     if (e.Exception != null)
     {
         ShowError("Há processos de compra que contém produtos com esta embalagem!");
         e.ExceptionHandled = true;
     }
 }
開發者ID:sidneylimafilho,項目名稱:InfoControl,代碼行數:8,代碼來源:Product_Package.aspx.cs

示例7: StationeryGridView_RowDeleted

 protected void StationeryGridView_RowDeleted(object sender, GridViewDeletedEventArgs e)
 {
     if (e.Exception != null)
     {
         ErrorLabel.Text = "The category can't be deleted";
         e.ExceptionHandled = true;
     }
 }
開發者ID:chutinhha,項目名稱:logic-university-stationery-store-inventory-system,代碼行數:8,代碼來源:Categories.aspx.cs

示例8: GridViewShopItems_RowDeleted

 protected void GridViewShopItems_RowDeleted(object sender, GridViewDeletedEventArgs e)
 {
     if (e.Exception == null)
     {
         //OK
     }
     else
     {
         labelManageShopItemsStatus.Text = "Failed to delete row!";
     }
 }
開發者ID:trippleflux,項目名稱:jezatools,代碼行數:11,代碼來源:ManageShopItems.aspx.cs

示例9: SectionGridView_RowDeleted

 protected void SectionGridView_RowDeleted(object sender, GridViewDeletedEventArgs e)
 {
     if (e.Exception != null)
     {
         e.ExceptionHandled = true;
         ShowMessageBox("Section deletion is unsuccessful" );
     }
     else //if (e.Exception == null)
     {
         ShowMessageBox("Section successfully deleted");
     }
 }
開發者ID:kaiss78,項目名稱:olems,代碼行數:12,代碼來源:SectionManagement.aspx.cs

示例10: GridView1_RowDeleted

 protected void GridView1_RowDeleted(object sender, GridViewDeletedEventArgs e)
 {
     if (e.Exception != null && e.Exception.InnerException != null)
     {
         if (e.Exception.InnerException is System.Data.DBConcurrencyException)
         {
             //hata burada yakalanıp handle edilir eğer DBConcurrencyException hatası aldıysak
             //o zaman conflict olmuş demektir. Hata mesajını gösteren label'ın visible'ını açalım.
             DeleteConflictMessage.Visible = true;
             e.ExceptionHandled = true;
         }
     }
 }
開發者ID:erdonet,項目名稱:EnterpriseDesignPatterns,代碼行數:13,代碼來源:CustomerList.aspx.cs

示例11: grdProducts_RowDeleted

 protected void grdProducts_RowDeleted(object sender, GridViewDeletedEventArgs e)
 {
     if (e.Exception != null)
     {
         lblServerError.Visible = true;
         lblServerError.Text = "A database error occured. Message: " + e.Exception.Message;
         e.ExceptionHandled = true;
     }
     else if (e.AffectedRows == 0)
     {
         lblServerError.Visible = true;
         lblServerError.Text = "Another user may have updated this entry already";
     }
 }
開發者ID:m-windle,項目名稱:Customer-Product-Management,代碼行數:14,代碼來源:ProductsAdmin.aspx.cs

示例12: GridView1_RowDeleted

 protected void GridView1_RowDeleted(
 object sender, GridViewDeletedEventArgs e)
 {
     if (e.Exception != null)
     {
     lblError.Text = "A database error has occurred.<br /><br />" +
         e.Exception.Message;
     if (e.Exception.InnerException != null)
         lblError.Text += "<br />Message: "
             + e.Exception.InnerException.Message;
     e.ExceptionHandled = true;
     }
     else if (e.AffectedRows == 0)
     lblError.Text = "Another user may have updated that category. "
         + "<br />Please try again.";
 }
開發者ID:cweber-wou,項目名稱:capstone,代碼行數:16,代碼來源:insSelectCourseAddAssignment.aspx.cs

示例13: impuestosGridView_RowDeleted

		protected void impuestosGridView_RowDeleted(object sender, GridViewDeletedEventArgs e)
		{
			if (e.Exception != null)
			{
				ScriptManager.RegisterStartupScript(this.Parent.Page, GetType(), "Message", "<SCRIPT LANGUAGE='javascript'>alert('" + e.Exception.Message.ToString().Replace("'", "") + "');</SCRIPT>", false);
				e.ExceptionHandled = true;
			}
		}
開發者ID:pjeconde,項目名稱:eFact,代碼行數:8,代碼來源:Impuestos.ascx.cs

示例14: OnRowDeleted

		protected virtual void OnRowDeleted (GridViewDeletedEventArgs e)
		{
			if (Events != null) {
				GridViewDeletedEventHandler eh = (GridViewDeletedEventHandler) Events [RowDeletedEvent];
				if (eh != null) eh (this, e);
			}
		}
開發者ID:calumjiao,項目名稱:Mono-Class-Libraries,代碼行數:7,代碼來源:GridView.cs

示例15: DeleteCallback

		bool DeleteCallback (int recordsAffected, Exception exception)
		{
			GridViewDeletedEventArgs dargs = new GridViewDeletedEventArgs (recordsAffected, exception, currentEditRowKeys, currentEditNewValues);
			OnRowDeleted (dargs);
			return dargs.ExceptionHandled;
		}
開發者ID:calumjiao,項目名稱:Mono-Class-Libraries,代碼行數:6,代碼來源:GridView.cs


注:本文中的System.Web.UI.WebControls.GridViewDeletedEventArgs類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。