Forum Moderators: open

Message Too Old, No Replies

hang problem

         

pritesh

1:08 pm on Feb 3, 2010 (gmt 0)

10+ Year Member




hi all,
I needs to insert data from datagridview to the database.First i need to do some calculation then only i can insert the data.My problem is that when i am inserting data (by looping one row at a time from grid and inserting) it hangs the offline software.
Data is inserting that time but software hangs.At the time of insertion of data,I want to print the row currently reading ,but it shows only last result after complete insertion.Please tell me how to do this.
Thanks in advance

marcel

8:02 am on Feb 4, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The behavior you are seeing is normal for a web application.

The client is not hanging, it's waiting for a response from the server, which is busy with its loop. Once your code has finished its processing it will render the page and send it back to the browser.

What you want to achieve can be difficult, have a look around for an 'ASP.Net progress page', you should find a multitude of different scenarios and solutions.