Side navigation
#6422 closed enhancement (invalid)
Opened April 12, 2010 09:17AM UTC
Closed April 13, 2010 01:26AM UTC
Could not return more than 60000 string data
Reported by: | soumitrasa | Owned by: | |
---|---|---|---|
Priority: | Milestone: | 1.4.3 | |
Component: | data | Version: | 1.4.2 |
Keywords: | could not return heavy data | Cc: | |
Blocked by: | Blocking: |
Description
Problem:
"We are using jquery to consume asp.net JSON web services.
$.ajax({
type: "POST",
url: "Services/Services.asmx/_featchData",
data: "{parameters}",
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function(msg) {
var value = msg.d;
},
error: function() {
alert("Error in loading!");
}
});
Above portion written inside .js function, we are calling _featchData() method written inside Services.asmx page
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
[System.Web.Script.Services.ScriptService]
To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line.
[System.Web.Script.Services.ScriptService]
public class Services : System.Web.Services.WebService
{
[WebMethod(EnableSession = true)]
[ScriptMethod(ResponseFormat = ResponseFormat.Json]
public string _featchData(parameters)
{
string data = "";
//logic written to create string and fetch data from server.
return data;
}
}
_featchData method written inside Services.asmx page,this method return data to .js file.
But problem is here through this process we could not return more than 60000 string data.
Please need some immediate solution because we are stuck here.
Attachments (0)
Change History (1)
Changed April 13, 2010 01:26AM UTC by comment:1
resolution: | → invalid |
---|---|
status: | new → closed |
Looks like you resolved this as not a jQuery issue:
http://forum.jquery.com/topic/when-we-are-return-string-length-more-than-60000-from-asmx-page-to-js-page-then-%E2%80%9Cerror-in-loading%E2%80%9D-is-thrown-means-incase-of-huge-data-returning-this-error-is-thrown