Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Having problem to run the CustomerOrders.aspx
Message
From
12/04/2004 08:19:25
Rex Mahel
Realm Software, Llc
Ohio, United States
 
 
To
12/04/2004 04:21:31
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
00893968
Message ID:
00893996
Views:
15
>I have followed the Jump Start Step by Step in creating a web application, when i try to run the CustomerOrders.aspx, it hits this error, and i can't solve it.
>
>
>Server Error in '/Order System Web CSharp' Application.
>--------------------------------------------------------------------------------
>
>A field or property with the name 'Order ID' was not found on the selected datasource.
>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.Web.HttpException: A field or property with the name 'Order ID' was not found on the selected datasource.
>
>Source Error:
>
>
>Line 25: public DataSet GetOrdersByCustomerID(string customerID)
>Line 26: {
>Line 27: return this.GetDataSet("SELECT * From Orders WHERE
> CustomerID = '" +
>Line 28: customerID + "'");
>Line 29: }
>
>
>Source File: c:\mm.net jump start\order system business objects csharp\orders.cs Line: 27
>
>Stack Trace:
>
>
>[HttpException (0x80004005): A field or property with the name 'Order ID' was not found on the selected datasource.]
> System.Web.UI.WebControls.HyperLinkColumn.OnDataBindColumn(Object sender, EventArgs e)
> System.Web.UI.Control.OnDataBinding(EventArgs e)
> System.Web.UI.Control.DataBind()
> System.Web.UI.Control.DataBind()
> System.Web.UI.Control.DataBind()
> System.Web.UI.WebControls.DataGrid.CreateItem(Int32 itemIndex, Int32 dataSourceIndex, ListItemType itemType, Boolean dataBind, Object dataItem, DataGridColumn[] columns, TableRowCollection rows, PagedDataSource pagedDataSource)
> System.Web.UI.WebControls.DataGrid.CreateControlHierarchy(Boolean useDataSource)
> System.Web.UI.WebControls.BaseDataList.OnDataBinding(EventArgs e)
> System.Web.UI.WebControls.BaseDataList.DataBind()
> OakLeaf.MM.Main.Web.UI.WebControls.mmDataGrid.BindControlToData(DataSet ds, String tableName)
> OakLeaf.MM.Main.Web.UI.mmWebBindingStrategyDataGrid.BindData(ImmWebBindingDataGrid mmGrid, mmBusinessObject bizObj, Boolean bindBack, mmBusinessStateChangeEventArgs e)
> OakLeaf.MM.Main.Web.UI.WebControls.mmDataGrid.OnBindData(mmBusinessObject bindingSource, mmBusinessStateChangeEventArgs e, Boolean bindBack)
> OakLeaf.MM.Main.Web.UI.WebControls.mmDataGrid.StateChangeHandler(mmBusinessObject bizObj, mmBusinessStateChangeEventArgs e)
> OakLeaf.MM.Main.Business.mmBusinessObject.OnStateChange(mmBusinessState bizState, String tableName, Object primaryKeyValue, Object[] primaryKeyValues)
> OakLeaf.MM.Main.Business.mmBusinessObject.CallStateChange(mmBusinessState bizState, String tableName)
> OakLeaf.MM.Main.Business.mmBusinessObject.FillDataSet(DataSet ds, String command, String tableName, String databaseKey, CommandType cmdType, IDbDataParameter[] dataParams)
> OakLeaf.MM.Main.Business.mmBusinessObject.GetDataSet(String command, String tableName, String databaseKey, CommandType cmdType, IDbDataParameter[] dataParams)
> OakLeaf.MM.Main.Business.mmBusinessObject.GetDataSet(String command, String tableName, String databaseKey, IDbDataParameter[] dataParams)
> OakLeaf.MM.Main.Business.mmBusinessObject.GetDataSet(String command, String tableName, String databaseKey)
> OakLeaf.MM.Main.Business.mmBusinessObject.GetDataSet(String command, String tableName)
> OakLeaf.MM.Main.Business.mmBusinessObject.GetDataSet(String command)
> Acme.OrderSystem.Business.Orders.GetOrdersByCustomerID(String customerID) in c:\mm.net jump start\order system business objects csharp\orders.cs:27
> Acme.WebOderSystem.Web.UI.CustomerOrders.GetCustomerOrders(String customerID) in c:\inetpub\wwwroot\order system web csharp\customerorders.aspx.cs:86
> Acme.WebOderSystem.Web.UI.CustomerOrders.btnGetOrders_Click(Object sender, EventArgs e) in c:\inetpub\wwwroot\order system web csharp\customerorders.aspx.cs:73
> System.Web.UI.WebControls.Button.OnClick(EventArgs e)
> System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
> System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
> System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
> System.Web.UI.Page.ProcessRequestMain()
>
>
>
>
>--------------------------------------------------------------------------------
>Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573
Previous
Reply
Map
View

Click here to load this message in the networking platform