I wrote this lines of code in my page for this my browser performence is decressed. Is there any other option to increase my browser performence
here i'm using for loop but in my datatable having 5000 records for this my browser performence is decressed.
But i want to read all the Doc_Id, Revision details from my datatable.
for (int i = 0; i < dsDocument.Tables.Rows.Count; i++)
string Doc_Id = dsDocument.Tables.Rows[i]["Doc_Id"].ToString();
string Revision = dsDocument.Tables.Rows[i]["Dwg_Rev_No"].ToString();
string Query = "<Where>" +
"<And><Eq><FieldRef Name='Dwg_No'/><Value Type='Text'>" + Doc_Id + "</Value></Eq>" +
"<Eq><FieldRef Name='Dwg_Rev_No'/><Value Type='Text'>" + Revision + "</Value></Eq></And>" +
dtDrawing = objFile.ListContent(objCurrentSite.SiteURL, objCurrentSite.WebSiteName, "Drawing", Query);
Updating 5000 records from a web page is retarded. That is your core issue. No matter how you do it, it will take time. If you must do it, then don't do it in the page lifecycle, ask a service to do it.
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)