Solved

ASP.Net Number of records processed

Posted on 2013-05-22
2
223 Views
Last Modified: 2013-05-26
Hi,

I want to show a progress on ASP.net page for how many records are processed.

I have tried several things, they worked while running project from Visual Studio but failed when deployed to IIS.

Any new suggestions?

Thanks in advance,
Rikin
0
Comment
Question by:Rikin Shah
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 27

Accepted Solution

by:
Chinmay Patel earned 500 total points
ID: 39190216
Hi rikin_shah,

I generally do not visit this TA but suddenly today I stumbled upon here and hence here it is.
 - Keep a static variable (a dictionary or a list)on page and populate it with SessionID -> records processed.
 - Use a webmethod that will return the progressbar value based on a given sessionId.
 - Call this webmethod using JS and show updated numbers

Alternatively
 - Keep the value in a session variable.
 - Write a page that will do just this: Response.Write(SessionVar); Response.End()
 - On client side using JS call this page and process return value.

Let me know if you have any questions/concerns.

Regards,
Chinmay.
0
 
LVL 16

Expert Comment

by:Rose Babu
ID: 39197406
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question