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
ejaz mirza
NA
471
47.5k
i want to display the excel file in datatable
Jan 22 2019 2:43 AM
i want to display my excel file which already in my application local folder how to do
am get byte code in view
string
filepath = Server.MapPath(
"~/Files/"
)+sfilename ;
byte
[] filedata = System.IO.File.ReadAllBytes(filepath);
string
contentType = MimeMapping.GetMimeMapping(filepath);
var cd =
new
System.Net.Mime.ContentDisposition
{
FileName = sfilename,
Inline =
true
,
};
Response.AppendHeader(
"Content-Disposition"
, cd.ToString());
return
File(filedata, contentType);
am getting the content now i want to display that in ajax success(data)
Reply
Answers (
8
)
Tools to design web page that support visual studio
Get the dropdown list of selected value and text in MVC