Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Business rules messages
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
00847469
Message ID:
00848300
Vues:
15
Chris,

Here's some sample code from the Web Forms Jump Start section of the MM .NET Dev Guide:
private void btnSave_Click(object sender, System.EventArgs e)
{
	DataSet dsOrder = (DataSet)Session["dsOrder"];

	if (this.Save(this.oOrder, dsOrder, this.oOrder.TableName) ==
		mmSaveDataResult.RulesPassed)
	{
		Response.Redirect("CustomerOrders.aspx");
	}
}
Rather than calling the business object's SaveDataSet method directly, you can call the MM .NET Web Form's Save() method instead which handles displaying broken rules for you!

Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform