Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Stack overflow in Web Forms Jump Start plus sample reque
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
00934239
Message ID:
00935535
Vues:
32
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!
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform