我有40 MB的数据,其中我有11303条记录。当我将JSON数据(JSON.stringify(dataArray))转换为隐藏元素时。它打破了消息"没有足够的存储空间来完成此操作"。
这里" dataArray"类型如下
public class XX_SearchResultResponse : EntityBase
{
public List<YY_SearchResultsList> lstSearchResults { get; set; }
public int sessionID { get; set; }
}
success: function (val) {
var x = val.d;
x = JSON.parse(x);
val.Result = x.Result;
if (val.Result != "") { //val.Result is of type XX_SearchResultResponse
var dataArray = val.Result;
RL.Util.UnblockUI('TBL_CRR_SEARCH_RESULTS');
RL.Util.hideProgressBar();
document.getElementById("hidDataArrayASP").value = JSON.stringify(dataArray);
__doPostBack(this.UniqueID, '#!@CRR');**
}
},
error: function (msg) {// When Service call fails
RL.Util.UnblockUI('TBL_CRR_SEARCH_RESULTS');
RL.Util.showAlertMessage('Failure' + msg, "Loading CRR data Error", 550);
RL.Util.hideProgressBar();
return false;
}