Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Back button works fine with small data grid view. but fails in case of large data grid view.
i am using below code in Drilldown.ascx user control
XML
<asp:Button ID="BtnBack" runat="server" Text="Back" CssClass="backbtn" OnClientClick="window.history.go(-1);return false;"/>

Drilldown.ascx is used in reportpopup.aspx page
Please help me.
Posted
Comments
ZurdoDev 24-Mar-15 9:06am    
What does "fails" mean? What actually happens?
saurabh kumar mahto 24-Mar-15 9:16am    
Ryan,
If Gridview have less than 1MB data than Back button works fine as expected. but if it has more than 1 MB data than Back Button does not response.
OriginalGriff 24-Mar-15 9:07am    
And just how big is the data?
saurabh kumar mahto 24-Mar-15 9:15am    
If there is more than 1 MB data in GridView, Back button does not response.

1 solution

"If there is more than 1 MB data in GridView, Back button does not response."

And there lies the nub of your problem.
Never try to throw that much data at people: it slows down responses, it makes your site sluggish, and worse - it's completely unusable.

Thing about it: how long is it going to take a user to find the line he is interested in in that middle of all that? Page your data, give the users searches, and filters so he can reduce the "rubbish" and concentrate on the "gold nuggets" of data he is interested in.
I know it's more work for you, but it means that the user will use your website more than once! Throw that much data at most users and 1) the response time will be so bad half of them will go elsewhere before the data loads, and 2) the patient half will never come back either because the data is useless to them.

And it'll fix your problem as a side effect...
 
Share this answer
 
v2
Comments
saurabh kumar mahto 24-Mar-15 10:03am    
Thanks Griff for your valuable advice.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900