/// <summary> /// Click event handler for btnCompress which compresses the file FileWrite /// </summary> /// <param name="sender">Object on which event has occured</param> /// <param name="e">Args for the event</param> protected void btnCompress_Click(object sender, EventArgs e) { // //path to the files string fileWrite = @"C:\Test\FileWrite"; string fileWriteZip = @"C:\Test\FileWriteZip"; //call to CompressFile() method to compress the FileWrite file bool result = UtilityFunctions.CompressFile(fileWrite, fileWriteZip); //checking the result received if (result) { //if success Response.Write(Messages.CompressSuccess); } else { //if failed Response.Write(Messages.CompressFailed); } }