Click here to Skip to main content
15,885,278 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: how to display data in grid without sending the data in the database Pin
Satish Mahapatra9-Nov-09 19:44
Satish Mahapatra9-Nov-09 19:44 
GeneralRe: how to display data in grid without sending the data in the database Pin
Flavia A9-Nov-09 22:19
Flavia A9-Nov-09 22:19 
GeneralRe: how to display data in grid without sending the data in the database Pin
Satish Mahapatra9-Nov-09 23:38
Satish Mahapatra9-Nov-09 23:38 
GeneralRe: how to display data in grid without sending the data in the database Pin
Flavia A10-Nov-09 0:27
Flavia A10-Nov-09 0:27 
GeneralRe: how to display data in grid without retreiving data from the database and later the dat from the gridview should go into the database. Pin
Flavia A10-Nov-09 0:51
Flavia A10-Nov-09 0:51 
Questionconnection with my sql with ASP.Net Pin
Amit Patel19859-Nov-09 18:30
Amit Patel19859-Nov-09 18:30 
AnswerRe: connection with my sql with ASP.Net Pin
Christian Graus9-Nov-09 18:46
protectorChristian Graus9-Nov-09 18:46 
AnswerRe: connection with my sql with ASP.Net Pin
Gamzun9-Nov-09 20:06
Gamzun9-Nov-09 20:06 
Answerfound solution Pin
Amit Patel19859-Nov-09 20:21
Amit Patel19859-Nov-09 20:21 
GeneralRe: found solution Pin
Christian Graus9-Nov-09 21:09
protectorChristian Graus9-Nov-09 21:09 
Question[Message Deleted] Pin
Amit Patel19859-Nov-09 18:30
Amit Patel19859-Nov-09 18:30 
AnswerRe: connection with my sql with ASP.Net Pin
N a v a n e e t h9-Nov-09 18:31
N a v a n e e t h9-Nov-09 18:31 
GeneralRe: connection with my sql with ASP.Net Pin
Amit Patel19859-Nov-09 18:46
Amit Patel19859-Nov-09 18:46 
GeneralRe: connection with my sql with ASP.Net Pin
Christian Graus9-Nov-09 18:47
protectorChristian Graus9-Nov-09 18:47 
QuestionAsync updates to DB without BackgroundWorker Pin
student_rhr9-Nov-09 12:40
student_rhr9-Nov-09 12:40 
AnswerRe: Async updates to DB without BackgroundWorker Pin
N a v a n e e t h9-Nov-09 15:32
N a v a n e e t h9-Nov-09 15:32 
What is ProgressHelper?

BackgroundWorker is a class designed for windows applications not web applications. So using it in a web application is not a good idea. If I understood your question, you need to do a time consuming task on background and show a progress bar on another ASP.NET page, correct?

If yes, follow the below steps.
  1. From the first page, start a thread (or better if you can use ThreadPool) and run the Process() method on that.
  2. This method should update the progress to a session variable say Session["progress"]
  3. Once the thread started, redirect to the page where progress will be displayed
  4. Use AJAX and poll the Session["progress"] value and show it on the page. For creating progress bar, you can use HTML DIV tag with a background color.
You need to pass HttpContext.Current to the Process() method because it is thread specific and a worker thread won't have access to it. Use this context to access the session.

Hope that helps Smile | :)

Best wishes,
Navaneeth

GeneralRe: Async updates to DB without BackgroundWorker Pin
student_rhr10-Nov-09 5:10
student_rhr10-Nov-09 5:10 
GeneralRe: Async updates to DB without BackgroundWorker Pin
N a v a n e e t h10-Nov-09 14:41
N a v a n e e t h10-Nov-09 14:41 
Questionhow to connect to the pop3 server from web page Pin
amalatsliit9-Nov-09 11:45
amalatsliit9-Nov-09 11:45 
AnswerRe: how to connect to the pop3 server from web page Pin
Christian Graus9-Nov-09 11:51
protectorChristian Graus9-Nov-09 11:51 
GeneralRe: how to connect to the pop3 server from web page Pin
amalatsliit9-Nov-09 12:18
amalatsliit9-Nov-09 12:18 
GeneralRe: how to connect to the pop3 server from web page Pin
Christian Graus9-Nov-09 14:49
protectorChristian Graus9-Nov-09 14:49 
AnswerRe: how to connect to the pop3 server from web page Pin
Kannan Ar9-Nov-09 15:27
professionalKannan Ar9-Nov-09 15:27 
QuestionShow/hide menu Pin
aspneter9-Nov-09 9:38
aspneter9-Nov-09 9:38 
AnswerRe: Show/hide menu Pin
Abhishek Sur9-Nov-09 10:26
professionalAbhishek Sur9-Nov-09 10:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.