Link to home
Start Free TrialLog in
Avatar of ziorrinfotech
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.
Avatar of aibusinesssolutions
aibusinesssolutions
Flag of United States of America image

What exactly are you doing that takes up to 50 seconds to complete?  There may be a better way to do it.

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.
Add Async="true" attribute on the page directive of the page.

Avatar of ziorrinfotech
ziorrinfotech

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
why can not load the page first and process this task in some other event?
ASKER CERTIFIED SOLUTION
Avatar of aibusinesssolutions
aibusinesssolutions
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial