Information générale
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Network:
Windows 2003 Server
I am using the form method. The only way I get the rules is from the GetAllBrokenRules collection. I had to move on to other areas of the project. From the documentation the errorprovider way of error reporting should be enabled by default. I have more than adequate space after my controls so that shouldn't be the problem. I am using the most recent version of MM.Net (the hotfix version). I was going to try setting the errorprovider properties in each business object next just to rule that out.
if (this.Save(this.request, dsRequest, this.request.TableName) == mmSaveDataResult.RulesPassed)
{
this.ClearSessionState();
Response.Redirect("/Guardians/SearchGuardians.aspx");
}
else
{
//Preserve the current GuardianID and Request DataSet
Session["guardianID"] = guardianID;
Session["dsRequest"] = this.request.DataSet;
//Get Broken Rules
string BrokenRulesMsg = this.request.Rules.GetAllBrokenRules();
string WarningsMsg = this.request.Rules.GetAllWarnings();
//Display Broken Rules
MessageDisplay.DisplayMessage("Broken Rules", BrokenRulesMsg, "/Requests/MaintainRequest.aspx", 7);
}
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement