Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error when rendering web error message
Message
 
To
All
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Title:
Error when rendering web error message
Miscellaneous
Thread ID:
01279281
Message ID:
01279281
Views:
71
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
Next
Reply
Map
View

Click here to load this message in the networking platform