Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ImmBinding interface implementation
Message
De
18/12/2003 16:03:02
 
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
00860193
Message ID:
00860518
Vues:
21
I wrote an override of GetParentForm in or derived FormManager class, and I changed part of the method from:
if (ParentForm == null && UIControl.Name == "")
{
	CheckActiveForm = false;
}
to:
if (ParentForm == null)
{
	if (UIControl.Name == "")
	{
		CheckActiveForm = false;
	}
	else if (UIControl.Name == UIControl.GetType().Name)
	{
		CheckActiveForm = false;
	}
}
This fixed the problem. It also introduces a bug/feature where no instance of a control can have the same name as it's class. This is good practice anyway, I guess...

Is this a good work-around, or will this introduce problems that I haven't foreseen?

-Nate
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform