Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error when rendering web error message
Message
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Titre:
Error when rendering web error message
Divers
Thread ID:
01279281
Message ID:
01279281
Vues:
66
Kevin,

I am getting a runtime error when trying to render an error message that has been returned from the business object. This is happening in my Web forms application. The following is the line(s) of code in the mmWebDataHelper.cs class file:
if (style == null)
			{
				// If there's no style, assume document layout
				return GetErrorMessageHtml(control);
			}
			else
			{
				// If there's a style, assume grid layout
				style = style.ToLower();

				Left = Int32.Parse( mmUtils.ExtractString(style,"left:","px") );
The runtime error occurs when the "style" is not null but is coming back as "position: relative". The error occurs on the line that is attempting to parse the extract string. In order to bypass this, I am thinking I can change the style so this line of code does not execute. Do you agree with this and if so, what "style" property needs to be changed?

Any other suggestions to get around this is appreciated.

Bob
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform