.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Melody Anderson

Home >> Code Snippets >> SharePoint >> Post New Resource Bookmark and Share   

 Subscribe to Code Snippets

Unexpected response from server. The status code of response is '0'.

Posted By:Nagarajan       Posted Date: December 13, 2013    Points: 40    Category: SharePoint    URL: http://www.dotnetspark.com  

This code is for resolving "Unexpected response from server. The status code of response is '0'. The status text of response is ''" Error in SharePoint.

We may get the above response while Client object model in SharePoint. In my case, I have received this issue when get the list information from SP App. The code is perfect to get info from List. But I ddn't get result set. Then I found an issue. The issue is not in script side. Its is in HTML side.
<button id="btnGet" value='Get Info" onclick='getinfo(); />
We need to change like this,
 <input type="button" id="btnGet" value="Get Info" onclick="getinfo();"></input>
Then it was working fine for me. J


Further Readings:


No response found. Be the first to respond this post

Post Comment

You must Sign In To post reply
Find More code samples in C#, ASP.Net, Vb.Net and more Here

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend