Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How does BrokenRules...
Message
 
À
05/12/2003 14:08:18
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
00856175
Message ID:
00856621
Vues:
17
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform