Posted on: 5/19/2015 6:41:27 AM | Views : 644

Hello all:
I wanna pop up an alert Dialog and show a download file box, my codes are:
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(); I know that they cannot work properly because I've cleared all response context, however if I don't do that, how to pop up an alert dialog before I download the file?
Thx

Go to the complete details ...