//(EVENT) UPLOAD IMAGES (button) protected void UploadButtonImages_Click(object sender, EventArgs e) { string radio = ""; //which radio button was picked if (rad_piping.Checked) { radio = "Piping_files\\"; } else if (rad_struct.Checked) { radio = "Struct_files\\"; } else if (rad_elect.Checked) { radio = "Elect_files\\"; } else if (rad_piping_elect.Checked) { radio = "PipingElect_files\\"; } else if (rad_piping_struct.Checked) { radio = "PipingStruct_files\\"; } else if (rad_struct_elect.Checked) { radio = "StructElect_files\\"; } //upload files here string pathPutFiles = ProjectFolder.GetCurrentProjectImageFolder() + "\\" + radio; FileManager.UploadFiles(FileUploadImages, NotificationLabel, pathPutFiles); //call javascript (for view function)(stay on settings page) Page.ClientScript.RegisterStartupScript(this.GetType(), "btnUpload", "view.btn_upload();", true); }