TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Yogesh Jadhav
NA
145
32.3k
not able to download a pdf file in ie11(asp.net application)
Jul 31 2014 2:17 AM
i have one application where i am giving a link to user to download files and that is working fine in chrome but its not working in IE11 and this problem is with only few files(which has size more than 1MB). files i am getting threw database.
can anyone help me on this?
below is the code sample:
Response.Clear();
Response.Buffer = true;
Response.ClearContent();
Response.ClearHeaders();
Response.Cache.SetCacheability(HttpCacheability.NoCache);
Response.AddHeader("content-disposition", String.Format("attachment;filename={0}", drAttchmentInfo["FileName"].ToString()));
Response.ContentType = "application/" + drAttchmentInfo["DocumentType"].ToString();
Response.BinaryWrite((byte[])drAttchmentInfo["Document"]);
//Response.End();
Response.Flush();
HttpContext.Current.ApplicationInstance.CompleteRequest();
Response.Close();
Reply
Answers (
4
)
how to create datepicker in mvc 5
Post model data containg file type using Ajax call in mvc4