asp.net 4.0 Themes Skin Problem - innerText / innerHtml will not be overridden

overridden be not will innerHtml / innerText - Problem Skin Themes 4.0 asp.net

There is a problem with the new Framework 4.0 in using Themes and Skin files.

The innerText / innerhtml will not be replaced by the one in the Skinfile.

The new effect is that the skinfile innertext will be added to the one in the markup file.

With the old framework 3.5 it works without any problems.

 

The Solution is to set the text in the skinfile as a property.

For example from:

<asp:Label runat="server" SkinID="skinid">newText</asp:Label>

to
<asp:Label runat="server" SkinID="skinid" Text="newText"></asp:Label>

 

but that is only a workarround until microsoft fixes the problem.



Comments are closed