Beispiel #1
0
        //delete event
        protected void gvFile_RowDeleting(object sender, GridViewDeleteEventArgs e)
        {
            try
            {
                GridViewRow row                = (GridViewRow)gvFile.Rows[e.RowIndex];
                Label       lbldeleteid        = (Label)row.FindControl("lblImgId");
                Label       lblDeleteImageName = (Label)row.FindControl("lblImageName");


                BusinessServices.Event objProfile = new BusinessServices.Event();
                objProfile.FileID = int.Parse(lbldeleteid.Text);
                objProfile.DeleteEventFile(objProfile);

                FileDeleteFromFolder(lblDeleteImageName.Text);
                EventFileList();
            }
            catch (Exception ex)
            {
                ErrorHandler.ErrorLog el = new ErrorHandler.ErrorLog(ex, ErrorLevel.High, "Usercpdevent.aspx.cs", "gvFile_RowDeleting", ex.Message);
            }
        }