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:
00935535
Views:
33
Kevin,

Thanks. I found the recursive call. Unfortunately, I copied the code verbatim from the help file. It is #7 in step 5 of "Jump Start: Creating Business Objects - C#":
7. Next, add the following methods to the OrderDetail class (Note that you are adding a second overload of the GetOrderDetail method that accepts an orderID parameter of type object, whereas the method you added in the previous step accepted an orderID parameter of type integer):

/// <summary>
/// Returns a DataSet containing all order items for the specified order
/// </summary>
/// <param name="orderID"></param>
/// <returns></returns>
public DataSet GetOrderDetail(object orderID)
{
	if (orderID != null)
	{
		return this.GetOrderDetail((int)orderID);
	}
	else
	{
		return this.GetEmptyDataSet();
	}
}
My code:
public DataSet GetOrderDetail(object orderID)
{
	if (orderID != null)
	{
		return this.GetOrderDetail((int)orderID);
	}
	else
	{
		return this.GetEmptyDataSet();
	}
}
GetOrderDetail() calls itself repeatedly.

Did I miss something or is the help file wrong?

Thanks again!
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform