Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How does BrokenRules...
Message
 
To
05/12/2003 14:08:18
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
00856175
Message ID:
00856621
Views:
16
>This is my source code for the Save Button; which matches the development guide. I am very new to .NET in general; but I am sure I have followed all of the steps.

Did you try adding a broken rule using the AddErrorProviderBrokenRule method? For example:
public string ValidateShipName(string shipName)
{
	string message = null;

	if (shipName == "")
	{
		message = "Must specify a ship name";
		if (this.DataSet != null)
		{
			this.AddErrorProviderBrokenRule("ShipName",
				message);
		}
	}
	return message;
}
This code was taken from the MM .NET Sample application's OrderRule.cs file. Which you can examine to see how the error icons are displayed in the sample app.

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
Reply
Map
View

Click here to load this message in the networking platform