472,356 Members | 222 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,356 software developers and data experts.

Exporting ALL data into Excel file with Page Navigation in ASP.NET

Hi,

I have a question about exporting data from datagrid control into Excel file
in ASP.NET. On my Web page, I have a linkbutton "Export data". This link
will call a Sub Function to perform exporting ALL data from the datagrid
control. Exporting data works fine when I show all data on the datagrid
control.

I'd like to shows only 30 records on the datagrid control instead of ALL
data using page navigation, and perform exporting ALL data from this Link
button. Can I do that ? Is there any other ways that I can use besides
datagrid control for exporting ALL data in ASP.NET. Please give me your
advices.

Thanks in advance.
Dec 6 '05 #1
2 2295
Yes,

when a user click "Export Data", you can retrieve the original dataset,
or pull down a new dataset with all the data.

With this,you can create your Excel file.

Does that help, or you need some code?

"bienwell" <bi******@hotmail.com> wrote in message
news:eW******************@tk2msftngp13.phx.gbl...
Hi,

I have a question about exporting data from datagrid control into Excel
file in ASP.NET. On my Web page, I have a linkbutton "Export data". This
link will call a Sub Function to perform exporting ALL data from the
datagrid control. Exporting data works fine when I show all data on the
datagrid control.

I'd like to shows only 30 records on the datagrid control instead of ALL
data using page navigation, and perform exporting ALL data from this
Link button. Can I do that ? Is there any other ways that I can use
besides datagrid control for exporting ALL data in ASP.NET. Please give me
your advices.

Thanks in advance.

Dec 6 '05 #2
Some code samples are very helpful to me. I developed Web page using Visual
Basic.Net.

Thanks

================================================== ========
"Grant Merwitz" <gr***@workshare.com> wrote in message
news:O$***************@TK2MSFTNGP12.phx.gbl...
Yes,

when a user click "Export Data", you can retrieve the original dataset,
or pull down a new dataset with all the data.

With this,you can create your Excel file.

Does that help, or you need some code?

"bienwell" <bi******@hotmail.com> wrote in message
news:eW******************@tk2msftngp13.phx.gbl...
Hi,

I have a question about exporting data from datagrid control into Excel
file in ASP.NET. On my Web page, I have a linkbutton "Export data".
This link will call a Sub Function to perform exporting ALL data from the
datagrid control. Exporting data works fine when I show all data on the
datagrid control.

I'd like to shows only 30 records on the datagrid control instead of ALL
data using page navigation, and perform exporting ALL data from this
Link button. Can I do that ? Is there any other ways that I can use
besides datagrid control for exporting ALL data in ASP.NET. Please give
me your advices.

Thanks in advance.


Dec 6 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Chris | last post by:
Could someone please provide me an effective means of exporting data from a data set (or data grid) to Excel?
3
by: sridevi | last post by:
Hello How to export data from ms-access database to excel worksheet using ASP. mainly i need to export data to multiple worksheets. it is very urgent to us. i have a sample code which works...
4
by: Hitesh | last post by:
Hi, I have three datagrid control on my aspx page and one export to excel button, i want to export all the 3 datagrids contents in one excel file. how can i achive that? -- Thanks Hitesh
1
by: Mustufa Baig | last post by:
I have an ASP.NET website where I am showing off crystal reports to users by exporting them to pdf format. Following is the code: ---------------- 1 Private Sub ExportReport() 2 Dim oStream...
6
by: Kevin Humphreys | last post by:
Hi There, I am trying to export a recordset to an excel file using the Content Type below in the header. Response.ContentType = "application/vnd.ms-excel" Which works fine however the...
2
by: Snozz | last post by:
The short of it: If you needed to import a CSV file of a certain structure on a regular basis(say 32 csv files, each to one a table in 32 databases), what would be your first instinct on how to...
4
by: deejayquai | last post by:
Hi First of all my level = basic! My question= I have a report containing student performance data with a sub-report showing the subjects they have taken that year. I run the report group by...
4
by: Tom | last post by:
I have a gridview on all of my web pages in my web app and they all export to excel. I have one page where the gridview is binding to a datatable that i created and only the first column is...
6
by: jpatchak | last post by:
Hi, I have kind of a strange problem. I have a report that I need to export to excel. The report opens fine in Access and when I export it or click on "Analyze It with Microsoft Office Excel," I...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge required to effectively administer and manage Oracle...
1
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. header("Location:".$urlback); Is this the right layout the...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it so the python app could use a http request to get...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and credentials and received a successful connection...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific technical details, Gmail likely implements measures...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand. Background colors can be used to highlight important...
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS starter kit that's not only easy to use but also...
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python has gained popularity among beginners and experts...
0
by: Ricardo de Mila | last post by:
Dear people, good afternoon... I have a form in msAccess with lots of controls and a specific routine must be triggered if the mouse_down event happens in any control. Than I need to discover what...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.