Hi all,
I am getting this error
Could not get the value property. Not enough storage is available to complete this operation.
when trying to import the excel data in ado.net datatable with 65536 no. of rows.
how can i solve this?
With around 30000 i am not getting any error.
This error i am getting with large no. of record in excel file and reading that in ado.net table?
Please help..
Loading

Deepika ChaudharyPosted Aug 24, 2011, 7:08 AM
Deepika ChaudharyPosted Aug 23, 2011, 9:14 AM
{
dtExcelData = ExcelData();
ViewState["dtExcelData"] = dtExcelData;if (dtExcelData.Rows.Count < 0)//here i am getting all the 65536 rows.
return;
}
protected void Button2_Click(object sender, EventArgs e)
{
DataTable dtTest1 = (DataTable)ViewState["dtExcelData"];
if (dtTest1.Rows.Count < 1)
return;
}
But when clicking on button2 it is not going in click event and give the error..if i use the button2 code in the button 1 only then it will not throw the error.. so problem is with postback and large records stored in viewstate..how can i solve this?
Deepika ChaudharyPosted Aug 23, 2011, 8:56 AM
but after postback it is giving error.
Amit ChoudharyPosted Aug 23, 2011, 8:52 AM
Try using "IMEX=1" in the connection string. For more details read this article here thoroughly will help you understanding the issue and giving you solution for this.
Hope this was helpful.
Deepika ChaudharyPosted Aug 23, 2011, 8:36 AM
htmlfile: Could not get the value property. Not enough storage is available to complete this operation.
and it is not going on button click event.