Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Stack overflow in Web Forms Jump Start plus sample reque
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
00934239
Message ID:
00934603
Views:
28
Thanks Kevin.

I step through the code and don't have any recursive code. As soon as I call "return this.GetDataSet(Sql);" the first time I get the error. Here is the code for that module:
Orders.cs

using System;
using System.Data;
using OakLeaf.MM.Main.Business;

namespace Acme.OrderSystem.Business
{
   /// <summary>
   /// Summary description for Orders.
   /// </summary>
   public class Orders : ABusinessObject
   {
      public Orders()
      {
         this.TableName = "Orders";
         this.PrimaryKey = "OrderID";
      }
      
      public DataSet GetOrdersByCustomerID(string customerID)
      {
         return this.GetDataSet("Select * from Orders where CustomerID = '" + customerID + "'");
      }
      
      public DataSet GetOrderByOrderID(int orderID)
      {
         // Broke into two statements for debugging
         string Sql = "Select * from Orders where OrderID = '" + orderID + "'";
         // From Watch statement: "Select * from Orders where OrderID = '10282'"
         // ****** Death by StackOverflowException on following statement.
         return this.GetDataSet(Sql);
         
         // Original statement from jump start instructions
         //return this.GetDataSet("Select * from Orders where OrderID = '" + orderID + "'");
      }
   }
}
I checked the datatype for Northwind's Orders.OrderID and changed the sql statement to:
   string Sql = "Select * from Orders where OrderID = " + orderID.ToString();
but got the same error.

I tried rebooting and got the same error. I have not yet tried installing 1.2 on another machine to try it there.

Ideas?

Thanks!
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform