Ejemplo n.º 1
0
 /// -----------------------------------------------------------------------------
 /// <summary>
 /// cmdDelete_Click runs when the Delete button is clicked.
 /// </summary>
 /// <remarks>
 /// </remarks>
 /// <history>
 ///     [cnurse]	9/17/2004	Updated to reflect design changes for Help, 508 support
 ///                       and localisation
 /// </history>
 /// -----------------------------------------------------------------------------
 protected void OnDeleteClick(object sender, EventArgs e)
 {
     try
     {
         if (VendorID != -1)
         {
             var objVendors = new VendorsController();
             objVendors.DeleteVendor(VendorID);
         }
         Response.Redirect(Globals.NavigateURL());
     }
     catch (Exception exc) //Module failed to load
     {
         Exceptions.ProcessModuleLoadException(this, exc);
     }
 }