Вопрос

I have an update progress with a spinner in it. On click of a search button, the spinner shows, and when it gets it's response the spinner goes away. This is all automated by the listview and asp update progress controls.

However, I have found that if an error occurs on the server side during this async postback, or the postback takes too longer, than the spinner will just keep spinning indefinitely.

Is there a way to recognize if an error has happened or if a request has timed out and then unload the updateprogress? I was on the trail of maybe recognizing an error through the scriptmanager, but got lost.

Это было полезно?

Решение

Try using the beginRequest and endRequest events of the PageRequestManager class if you haven't already: http://msdn.microsoft.com/en-us/library/bb398821%28v=vs.100%29.aspx

I've used those progress spinners before but haven't noticed this issue.

Другие советы

See this: http://forums.asp.net/t/1266920.aspx It essentially says you must manipulate the element manually by attaching to Sys.Application.beginRequest and endRequest.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top