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
manikanta jaladi
NA
70
17.1k
open a document in browser
Jun 21 2016 8:46 AM
string filename = "1.docx";
string filepath= @"......\1.docx";
Response.Clear();
Response.AddHeader("content-disposition","attachment;filename=" + filename);
Response.ContentType = "application/force-download";
Response.WriteFile(filepath);
Response.Flush();
Response.End();
I used this code for opening the document in page load event but it's not showing rather than downloading i want a preview of the document please help me
Reply
Answers (
2
)
open a tiff document with slides
Async sql connectivity