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

I have since found the style property settings on the controls that is causing this problem. I have removed the style settings and the error messages are now displaying properly.

I don't know if this will at some point cause problems, but please note if this is a bug.

Thanks.

Bob

>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform