大数据时,后退按钮失败 [英] back button fails in case of large data

查看:81
本文介绍了大数据时,后退按钮失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

后退按钮可以很好地处理小数据网格视图。但是在大数据网格视图的情况下失败。

i我在Drilldown.ascx用户控件中使用以下代码

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

<asp:Button ID="BtnBack" runat="server" Text="Back" CssClass="backbtn" OnClientClick="window.history.go(-1);return false;"/>



Drilldown.ascx用于reportpopup.aspx页面

请帮帮我。


Drilldown.ascx is used in reportpopup.aspx page
Please help me.

推荐答案

如果GridView中有超过1 MB的数据,返回按钮没有回复。



你的问题就在于它。

永远不要试图把这么多的数据扔到人:它减慢了响应速度,它使你的网站变得迟钝,更糟糕 - 它完全无法使用。



关于它:用户需要多长时间在那个中间找到他感兴趣的那条线?将您的数据分页,提供用户搜索和过滤,这样他就可以减少垃圾并专注于他感兴趣的数据的金块。

我知道这对你来说更有用处,但这意味着用户将不止一次使用您的网站!在大多数用户身上投入了大量数据,1)响应时间非常糟糕,其中一半将在数据加载之前转移到其他地方; 2)患者一半将永远不会回来因为数据对他们没用。



它会解决你的问题副作用......
"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...


这篇关于大数据时,后退按钮失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆