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:
01279581
Vues:
17
Bob,

>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?

Is this with a third-party control or an MM .NET subclass of the standard ASP.NET controls?

Best 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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform