Export to excel funtionality works only once when a page is loaded at first

NC123 1 Reputation point
2022-01-12T07:31:28.17+00:00

I have one usercontrol which has a button in it. This button exports the data from the Gridview of the page to a excel sheet.

The data in gridview is bind from the database, the gridview has paging enabled.

The problem is this button works only once when the page is loaded at start and captures the data on the first page of gridview. When we move to second or any other page the excel is not downloaded. there is no error as well.

This usercontrol is called in a web from in updatepanel.

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,375 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,254 questions
VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,570 questions
{count} votes