Response.Write("<script>alert('OK');</script>");
HttpContext.Current.Response.Clear();
HttpContext.Current.Response.ClearHeaders();
HttpContext.Current.Response.Buffer = false;
HttpContext.Current.Response.AppendHeader("Content-Disposition", "attachment;filename=" + HttpUtility.UrlEncode(Path.GetFileName(fileName), System.Text.Encoding.UTF8));
HttpContext.Current.Response.ContentType = "application/octet-stream";
HttpContext.Current.Response.WriteFile(fullPath);
HttpContext.Current.Response.Flush();
HttpContext.Current.Response.End();
It seems that Clear() will clear all the data contents in the Response, however I wanna an alert dialog is popped up before another dialog of downloading a file is shown in front of clients, so how?
Go to the complete details ...