<P class=MsoNormal style="MARGIN: 0in 0in 0pt">I am trying to use custom search control against the database. but it is giving me some issues.
<P class=MsoNormal style="MARGIN: 0in 0in 0pt">As I try to write the data back to the client I get exception
<P class=MsoNormal style="MARGIN: 0in 0in 0pt">
<P class=MsoNormal style="MARGIN: 0in 0in 0pt">?Cannot access a disposed object.
<P class=MsoNormal style="MARGIN: 0in 0in 0pt">Object name: 'DataContext accessed after Dispose.'.?
<P class=MsoNormal style="MARGIN: 0in 0in 0pt">
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none">Here is my code Paging<Supplier> Suppliers = Supplier.SupplierPaging(start, limit, sort, dir, query);
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none">
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"> context.Response.Write(string.Format("{{totalCount :{1},'Suppliers':{0}}}", JSON.Serialize(Suppliers.Data), Suppliers.TotalRecords));
<P class=MsoNormal style="MARGIN: 0in 0in 0pt">when I look at the Suppliers.Data I can see the collection is there as well as Suppliers.TotalRecords retruns 29 record
<P class=MsoNormal style="MARGIN: 0in 0in 0pt">
<P class=MsoNormal style="MARGIN: 0in 0in 0pt">can you guys advise me what to do and how can I fix it
<P class=MsoNormal style="MARGIN: 0in 0in 0pt">
<P class=MsoNormal style="MARGIN: 0in 0in 0pt">thanks