|
DataTable binding problem: msg#00153windows.devel.dotnet.web
I load a DataSet with a few DataTables in OnInit. I do an initial Repeater bind to it in Page_Load for the purpose of event handling on PostBacks, and a second bind to it in OnPreRender. The Repeater's DataSource is the result of a Select() function call, possibly with filter and order parameters. The problem is that if I add a filter to the Page_Load select, I receive the error shown below. Adding a filter to the OnPreRender select, I do not receive an error. Any thoughts? Error follows: Index was outside the bounds of the array. Stack Trace: [IndexOutOfRangeException: Index was outside the bounds of the array.] System.Data.Select.CreateIndex() System.Data.Select.SelectRows() System.Data.DataTable.Select(String filterExpression, String sort) DS.Web.InfoDirect.Data.OFM.OrderGuideProducts.GetData() DS.Web.InfoDirect.OFM.Display.MangeOGProducts.Page_Load(Object sender, EventArgs e) System.Web.UI.Control.OnLoad(EventArgs e) +67 System.Web.UI.Control.LoadRecursive() +35 System.Web.UI.Page.ProcessRequestMain() +750 Thanks, Jason =================================== This list is hosted by DevelopMentor® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Reports development in .NET web applcations: 00153, Booth, Bill |
|---|---|
| Next by Date: | Re: DataTable binding problem: 00153, Jason Capriotti |
| Previous by Thread: | Reports development in .NET web applcationsi: 00153, Padala, Parikshith [IT] |
| Next by Thread: | Re: DataTable binding problem: 00153, Jason Capriotti |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |