Click here to Skip to main content
15,896,154 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a problem in my page that uses long polling. During page reload, an error will be displayed that says the connection was interrupted. This is because when the page was reloaded, the request was interrupted. I need to find a way on a client side where or how to know what was the http status so that I can put a logic not to display the error message.(since it is just a page reload so no I don't want the error message to show up)


What I have tried:

I have tried searching on the internet but so far what I've found was for the server side. Link-> http://goo.gl/cztISb
What I want is that, how would the client side know what was the status (if there is any), so that I can put a piece of code to removed the error message.
Posted
Updated 14-Mar-16 20:01pm
v2
Comments
[no name] 15-Mar-16 1:57am    
It may help you:

http://www.c-sharpcorner.com/UploadFile/manas1/implementing-ajax-concept-in-Asp-Net-using-xmlhttprequest/

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900