Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Long process problem

Status
Not open for further replies.

s2001

Programmer
Dec 7, 2001
132
US
Hello All,
I have asp.net 2.0 web page which calls a method. This method excutes multiple store procedures. The whole process may take somewhere between 15-20 mins to complete.
What happens is after a minute IE navigates away from the page to its default error page (Internet Explorer cannot display the webpage..blah blah)...But the process is still running in the background (I have checked that)

I suspect that page is timing out...do you guys know of this problem...does anybody know how to increase the page time out in 2.0 asp.

TIA
Murali

Thanks,
MB
 
That's a very long time for a page to execute and I wouldn't recommend doing it. Instead, try using a web service.


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
thanx for the response ca8msm. I thought so too. I have broken down the method and the method take 3-4 mins to complete but i continue have the same problem...any ideas

TIA
Murali

Thanks,
MB
 
With a web service, you can return status codes at various intervals so that your page simply kicks off the process and then refreshes to show the current status. This way, it's irrelvant how long the process takes as the page isn't hanging around waiting for it to finish.


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
I tried to use web service but with no sucess.

Here's what i did I added a .asmx file in the project and added the method to it. In the web page i created an instance of the service and called the method.

'in the webpage
Dim servmethod As New services
servmethod.RefreshData()

Services.asmx
<WebMethod()> _
Public Function RefreshData() As Integer

Try
Dim adminDS As New AdminDACL
adminDS.RefreshData()
Return 0
Catch ex As Exception
Return 1
End Try
End Function

Thanks,
MB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top