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
Jaima Joseph
NA
94
107.5k
How to transfer data from MVC HTML view to Excel file
Dec 12 2013 11:42 PM
Hi,I have to transfer data entered in HTML view in my MVC application to an excel file when I click on a submit button.I have tried something like Response.AddHeader("content-disposition", "attachment; filename=OnlineQuotes.xls"); Response.AddHeader("Content-Type", "application/vnd.ms-excel"); return View(); in my Controllers action method.But it is not working.Also I have tried using a javascript,that is saving the page source code to a file.I want to append a row to the excel file which should be the data entered in my table's tds. Anybody can help??
Reply
Answers (
3
)
c# Events
Viewing Crystal Report on Form2 value based on form 1