简体   繁体   English

页面传输期间的ASP.NET进度栏显示

[英]ASP.NET Progress bar display during Page transfer

I'm working on a website which handles large amounts of data. 我正在处理大量数据的网站上。 I have got a requirement to implement functionality to validate excel data uploaded by USER and show up the summary of results. 我需要实施一些功能来验证USER上传的excel数据并显示结果摘要。 I am currently using two pages one for User Input and another for Summary. 我当前正在使用两页,一个用于用户输入,另一个用于摘要。

This whole process is taking 30 seconds so i wanted to display a progress bar for user notification while operation taking place . 整个过程需要30秒钟,所以我想在操作发生时显示进度条,以便用户通知。

* Question1 : If i dsiplay progress bar and do all background validation/operations in first page and later just show the results in seconds page What technique should i use(Sessions, cache object..) to pass data(collection object) from page to another. * 问题1:如果我在进度条上显示dsiplay并在第一页中执行所有后台验证/操作,然后稍后在几秒钟的页面中显示结果,我应该使用哪种技术(会话,缓存对象..)将数据(收集对象)从页面传递到另一个。 The Collection object can contain as many as 5000 and more records * Collection对象可以包含多达5000条和更多的记录*

* Question2 : How do i display a progress bar when user clicks a button on same page * * Question2:当用户单击同一页面上的按钮时,如何显示进度栏*

Thank you 谢谢

In a 2-part MSDN Magazine series starting with the December 2011 issue, Dino Esposito wrote A Context-Sensitive Progress Bar for ASP.NET MVC . 从2011年12月期开始,在分为2部分的MSDN杂志系列中,Dino Esposito 为ASP.NET MVC编写了一个上下文相关的进度条 This looks pretty comprehensive. 这看起来很全面。 It might give you some ideas. 它可能会给您一些想法。

Part 1 Part 2 第1 部分第2部分

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM