Server Error in '/' Application.

Cannot find column Price.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.IndexOutOfRangeException: Cannot find column Price.

Source Error:


Line 937:        DataView dv = new DataView(dt);
Line 938:
Line 939:        dv.Sort = Convert.ToString(ddlSorting.SelectedValue);
Line 940:
Line 941:        dt = dv.ToTable();

Source File: d:\Sites\welwitschia-estates\search-results.aspx.cs    Line: 939

Stack Trace:


[IndexOutOfRangeException: Cannot find column Price.]
   System.Data.DataTable.ParseSortString(String sortString) +2814303
   System.Data.DataView.set_Sort(String value) +164
   search_results.BindDataIntoListView() in d:\Sites\welwitschia-estates\search-results.aspx.cs:939
   search_results.Page_Load(Object sender, EventArgs e) in d:\Sites\welwitschia-estates\search-results.aspx.cs:811
   System.Web.UI.Control.OnLoad(EventArgs e) +108
   System.Web.UI.Control.LoadRecursive() +90
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1533


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4494.0