Click here to Skip to main content
15,908,455 members
Home / Discussions / ASP.NET
   

ASP.NET

 
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 
QuestionCan I get a hold of ASP controls in an ASPX page Pin
fiaolle9-Nov-09 8:22
fiaolle9-Nov-09 8:22 
AnswerRe: Can I get a hold of ASP controls in an ASPX page Pin
fiaolle9-Nov-09 8:26
fiaolle9-Nov-09 8:26 
GeneralRe: Can I get a hold of ASP controls in an ASPX page Pin
Abhishek Sur9-Nov-09 8:42
professionalAbhishek Sur9-Nov-09 8:42 
GeneralRe: Can I get a hold of ASP controls in an ASPX page Pin
fiaolle9-Nov-09 9:00
fiaolle9-Nov-09 9:00 
GeneralRe: Can I get a hold of ASP controls in an ASPX page Pin
Abhishek Sur9-Nov-09 10:23
professionalAbhishek Sur9-Nov-09 10:23 
GeneralRe: Can I get a hold of ASP controls in an ASPX page Pin
fiaolle9-Nov-09 10:59
fiaolle9-Nov-09 10:59 
GeneralRe: Can I get a hold of ASP controls in an ASPX page Pin
Abhishek Sur9-Nov-09 21:27
professionalAbhishek Sur9-Nov-09 21:27 
GeneralRe: Can I get a hold of ASP controls in an ASPX page Pin
fiaolle9-Nov-09 21:45
fiaolle9-Nov-09 21:45 

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.