I have a css function, which adds a (default or custom) css path to the LINK tag.
On Page_Load Event. The path is parsed and the link is added.
<<< CODE >>>
Dim ctl1 As Control = ctl.Page.FindControl("CSS")
Dim gc As HtmlGenericControl
If Not ctl1 Is Nothing Then
gc = New HtmlGenericControl("LINK")
gc.Attributes("rel") = "stylesheet"
gc.Attributes("type") = "text/css"
gc.Attributes("href") = ctl.ResolveUrl(s)
ctl1.Controls.Add(gc)
End If
<<< END CODE >>>
The problem is with 4.3 (all previous versions including 4.0.3 do NOT have this problem).
This formatted link tag is correct.
Note that Vehicle_m.css has been added, and the closing tag </LINK> is present.
<<< CODE >>>
<LINK id="_DotNetNuke_03_03_xx_Portals__default_" rel="stylesheet" type="text/css" href="/DotNetNuke.03.03.xx/Portals/_default/default.css"></LINK><LINK id="_DotNetNuke_03_03_xx_Portals__default_Skins_DNN_Blue_" rel="stylesheet" type="text/css" href="/DotNetNuke.03.03.xx/Portals/_default/Skins/DNN-Blue/skin.css"></LINK><LINK id="_DotNetNuke_03_03_xx_Portals__default_Containers_DNN_Blue_" rel="stylesheet" type="text/css" href="/DotNetNuke.03.03.xx/Portals/_default/Containers/DNN-Blue/container.css"></LINK><LINK id="_DotNetNuke_03_03_xx_Portals_0_" rel="stylesheet" type="text/css" href="/DotNetNuke.03.03.xx/Portals/0/portal.css"></LINK><LINK rel="stylesheet" type="text/css" href="/DotNetNuke.03.03.xx/DesktopModules/ListingSuite/Vehicle_m.css"></LINK>
<<< END CODE >>>
This formatted link tag is NOT correct.
Note that Vehicle_m.css has NOT been added, and the closing tag </LINK> is NOT present.
<<< CODE >>>
<link id="_DotNetNuke_04_03_xx_Portals__default_" rel="stylesheet" type="text/css" href="/DotNetNuke.04.03.xx/Portals/_default/default.css" /><link id="_DotNetNuke_04_03_xx_Portals__default_Skins_DNN_Blue_" rel="stylesheet" type="text/css" href="/DotNetNuke.04.03.xx/Portals/_default/Skins/DNN-Blue/skin.css" /><link id="_DotNetNuke_04_03_xx_Portals__default_Containers_DNN_Blue_" rel="stylesheet" type="text/css" href="/DotNetNuke.04.03.xx/Portals/_default/Containers/DNN-Blue/container.css" /><link id="_DotNetNuke_04_03_xx_Portals_0_" rel="stylesheet" type="text/css" href="/DotNetNuke.04.03.xx/Portals/0/portal.css" /><title>
My Website > Inventory ( DNN 4.3.0 )
<<< END CODE >>>
By comparing between 3.3 and 4.3 you can also see how the META tag is also malformed.
The offending code appears to be with how these tags are parsed. By comparing between 3.3 and 4.3 the Default.aspx.vb, this appears to be handled differently.
This has been logged.
http://support.dotnetnuke.com/Default.aspx?p=23&i=3156