C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Forums » .NET » .NET »

export to excel


Posted Date: 06 Oct 2008      Posted By: Saritha Reddy      Member Level: Silver     Points: 1   Responses: 1



how to export the Datatable to excel sheet using c# coding




Responses

Author: Praveen    06 Oct 2008Member Level: SilverRating: 3 out of 53 out of 53 out of 5     Points: 3

vwPage.Response.ContentType = "application/vnd.ms-excel";
vwPage.Response.AddHeader("content-disposition", "attachment; filename=Temp.xls");
vwPage.EnableViewState = false;
vwPage.Response.Charset = String.Empty;



Post Reply

 This thread is locked for new responses. Please post your comments and questions as a separate thread.
If required, refer to the URL of this page in your new post.


Next : how to create folder to zip
Previous : How to use substring method
Return to Discussion Forum
Post New Message
Category: .NET

Related Messages



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use