//(EVENT) UPLOAD XML (button) protected void UploadButton_Click(object sender, EventArgs e) { //upload files here string pathPutFiles = ProjectFolder.GetCurrentProjectFolder() + "\\"; FileManager.UploadFiles(FileUpload1, NotificationLabel, pathPutFiles); //call javascript (for view function)(stay on settings page) Page.ClientScript.RegisterStartupScript(this.GetType(), "btnUpload", "view.btn_upload();", true); }