Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Business rules messages
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
00847469
Message ID:
00848300
Views:
14
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform