Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

How to convert a gridview to excel on webpage

Posted on 2011-09-19
4
222 Views
Last Modified: 2012-05-12
I have requirement where i need to display the data in table as gridview and if the enduser needs he/she can click on the button to load the gridview data to excel. Can some one give a step by step procedure to make this happen. I would like to know the simple solution.
0
Comment
Question by:panthi
  • 2
  • 2
4 Comments
 
LVL 12

Expert Comment

by:jagssidurala
ID: 36562044
0
 

Author Comment

by:panthi
ID: 36582559
can anyone give a working example code that does not use ajax
0
 
LVL 12

Accepted Solution

by:
jagssidurala earned 500 total points
ID: 36582603
have you gone through links provided above.

1) First link clearly explained you how to generate an excel with a result set(DataTable) with entire code.

other links also provided you entire code implementation
0
 

Author Comment

by:panthi
ID: 36582758
i am getting some error with the first link function,
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question