Click here to Skip to main content
15,907,906 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
C#
hi iam using c# asp.net web application.

i develop one web page where we do some process for 15min it take to complete.

within under that 15min i cant open onthor page on same application  it show loading page til first one is finish.

how to do simultaneously work  or open my other web page on same time first page are in process.


What I have tried:

simultaneously work on same application in c# Asp.net
Posted
Updated 13-Apr-16 20:31pm
Comments
Philippe Mori 14-Apr-16 12:16pm    
I don't know what you do but usually each page request is independent in ASP.NET.

1 solution

How to: Use a Background Worker[^]

Short version:
Create an event handler for the background worker's DoWork event.
The DoWork event handler is where you run the time-consuming operation on the background thread. Any values that are passed to the background operation are passed in the Argument property of the DoWorkEventArgs object that is passed to the event handler.
To report progress back to the calling process, call the ReportProgress method and pass it a completion percentage from 0 to 100. Calling the ReportProgress method raises the ProgressChanged event, which you handle separately.

There is also this: How to run Background Tasks in ASP.NET - Scott Hanselman[^]
to save you some work of adapting it to the web.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900