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