ziorrinfotech
asked on
how to handle long time taking process in asp.net
one of my web page take around 30 to 50 seconds to get completed.
right now user has to wait this much time to view the complete web page.
I am using Ajax and all but this also gives me timeout error very frequently, and this is not very good from end user point of view.
Is there any way that the page keeps loading and user does have to wait that much time, I am showing loading image but this image also get hanged while the process runs.
Please give some examples that would help me a lot.
right now user has to wait this much time to view the complete web page.
I am using Ajax and all but this also gives me timeout error very frequently, and this is not very good from end user point of view.
Is there any way that the page keeps loading and user does have to wait that much time, I am showing loading image but this image also get hanged while the process runs.
Please give some examples that would help me a lot.
Add Async="true" attribute on the page directive of the page.
ASKER
I have a dataset which contains 12 tables and these tables contains tons of records, and i am inserting these records into the database.
this process takes much time
this process takes much time
why can not load the page first and process this task in some other event?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You can increase the timeout of your app in the web.config file under the <httpRuntime> section to prevent timeouts.
You can also use javascript to display div layers when the submit button is pressed, so you can display a "Loading" image or something.