private void ExportFilesButton_Click(object sender, System.EventArgs e)
		{
			// Check if the user has correctly ended his path
			if (ServerPathTextBox.Text.Length > 0 && 
				ServerPathTextBox.Text[ServerPathTextBox.Text.Length-1] != '\\')
			{
					ServerPathTextBox.Text += '\\';
			}

			if (ServerPathTextBox.Text.Length == 0)
			{
                ((PageBase)Page).ShowErrorMessage(MessageLabel,((PageBase)Page).GetPageResource("PleaseEnterPathMessage"));
				MessageLabel.Visible = true;
				return;
			}
			else if (!Directory.Exists(ServerPathTextBox.Text))
			{
((PageBase)Page).ShowErrorMessage(MessageLabel,((PageBase)Page).GetPageResource("PathNotExistMessage"));
				MessageLabel.Visible = true;
				return;
			}
	
			int exportedSize = new Answer().ExportAnswerFilesToDirectory(SurveyId, ServerPathTextBox.Text, (FileExportMode)int.Parse(FileGroupsDropDownList.SelectedValue)); 

            ((PageBase)Page).ShowNormalMessage(MessageLabel,string.Format(GetPageResource("FilesWrittenMessage"), 
				(Math.Round((double)exportedSize/1048576*100000)/100000).ToString("0.##"), ServerPathTextBox.Text));
			MessageLabel.Visible = true;
		}
        protected virtual void uploadButton_Click(object sender, EventArgs e)
        {
            if (((this._fileUpload.PostedFile != null) && (this._fileUpload.PostedFile.ContentLength > 0)) && this.ValidateUpload())
            {
                byte[] buffer = new byte[this._fileUpload.PostedFile.ContentLength];


                this._fileUpload.PostedFile.InputStream.Read(buffer, 0, this._fileUpload.PostedFile.ContentLength);
                int fileId = new Answer().StoreAnswerFile(this.GroupGuid, Path.GetFileName(this._fileUpload.PostedFile.FileName), this._fileUpload.PostedFile.ContentLength, this._fileUpload.PostedFile.ContentType, buffer, GlobalConfig.UploadedFileDeleteTimeOut, GlobalConfig.SessionUploadedFileDeleteTimeOut);
                this._fileTable.Rows.Add(this.GetFileRow(fileId, this.GroupGuid, this._fileUpload.PostedFile.ContentLength, Path.GetFileName(this._fileUpload.PostedFile.FileName), this._fileUpload.PostedFile.ContentType));
                this.OnAnswerMessage(new AnswerItemMessageEventArgs(ResourceManager.GetString("FileUploadedMessage", base.LanguageCode), AnswerMessageType.Information));
            }
        }