Portal Engine Questions on portal engine and web parts.
Version 4.x > Portal Engine > Error message has "display:block;" View modes: 
User avatar
Member
Member
Scott - 1/17/2010 6:04:35 PM
   
Error message has "display:block;"
I am using the Custom Registration Form and it seems that any error messages have 'style="display:block;"' hard coded. It seems to be hard coded in a DLL. Is this really the case? If so, I'm surprised that you hard-coded style info into a DLL where I can't remove it. If it is changeable, can you please let me know where I can remove that?

I'm using v4.1.

Thanks,

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 1/18/2010 6:38:41 AM
   
RE:Error message has "display:block;"
Hi,

Regrettably this style is being added by .Net framework automatically to the validation messages, when using .Net validation. You can create custom form controls and validate them with your custom code.

Best Regards,
Juraj Ondrus

User avatar
Member
Member
Scott - 1/18/2010 8:58:24 AM
   
RE:Error message has "display:block;"
You must be thinking that I am referring to something else. I've made lots of ASP.NET validators -- .NET doesn't do what I'm talking about. I looked in Reflector to understand the DLL. It looks like it's actually in the BasicForm class in the CreateErrorLabel method. See here: http://twitpic.com/ynmnu

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 1/19/2010 7:50:23 AM
   
RE:Error message has "display:block;"
Hi,

I am sorry for the confusion. Now I got it. You are right. It is there from very old versions and it seems that developers forget to remove it. I have submitted requirement to the next version. So I hope they will remove it from there. Right now you can use CSS styles with "!important" statement to override it. I am sorry for this inconvenience.

Best Regards,
Juraj Ondrus