Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Malformed "LINK" Tag in 4.3.0Malformed "LINK" Tag in 4.3.0
Previous
 
Next
New Post
6/16/2006 1:21 PM
 

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

 

 

 


Robert Harriman
WEBMAZING.NET
AutoWebSuite / BrokerWebSuite

DNN Modules for Auto Dealers and Real Estate Professionals.

 
New Post
6/16/2006 6:55 PM
 
Interestingly, if you look at Default.aspx (not ViewSource) but the code we ship, you will see that in 4.3 there are no <LINK> tags at all.  This is because the core has been changed to use the new HtmlLink Server controls that are found in .NET 2.  The .NET Rendering engine, recognises that the <LINK> tag has no contained content so it uses the shorhand <LINK /> instead of <LINK></LINK>.  Thus the tag is not malformed.

Similarly the <META> tags are defined using HtmlMeta server controls and rendered as <META /> rather than <META> .  This is valid XHtml.

The issue here is that we removed the named placeholder <asp:placeholder id="CSS" runat="server"></asp:placeholder>, that you relied on in your code, so if that is put back your code (and others that relied on that placeholder would continue to work)

Charles Nurse
Chief Architect
Evoq Content Team Lead,
DNN Corp.

Want to contribute to the Platform project? - See here
MVP (ASP.NET) and
ASPInsiders Member
View my profile on LinkedIn
 
New Post
6/16/2006 7:03 PM
 
I have made the change and the fix will be in the next point release.  In the interim, you should be able to make it work by adding

<asp:placeholder id="CSS" runat="server"></asp:placeholder>

just before this

<style id="StylePlaceholder" runat="server"></style>

in Default.aspx



Charles Nurse
Chief Architect
Evoq Content Team Lead,
DNN Corp.

Want to contribute to the Platform project? - See here
MVP (ASP.NET) and
ASPInsiders Member
View my profile on LinkedIn
 
New Post
6/16/2006 10:34 PM
 

 

Charles,

This did the trick.

Thank you for your FAST response, and the outstanding effort you have given to this project.

Robert.

 


Robert Harriman
WEBMAZING.NET
AutoWebSuite / BrokerWebSuite

DNN Modules for Auto Dealers and Real Estate Professionals.

 
New Post
7/7/2006 8:45 AM
 

Hi all,

Robert discussed also an issue with the meta tags but that does not seem to be solved in 4.3.2? I get the following meta part. As you can see, there zre no correct closing tags (/).

<meta id="MetaDescription" name="DESCRIPTION" content="My Website"><meta id="MetaKeywords" name="KEYWORDS" content="DotNetNuke, DNN, Content, Management, CMS,DotNetNuke,DNN"><meta id="MetaCopyright" name="COPYRIGHT" content="Copyright 2006 by My Website"><meta id="MetaGenerator" name="GENERATOR" content="DotNetNuke 4.3.2"><meta id="MetaAuthor" name="AUTHOR" content="My Website"><meta name="RESOURCE-TYPE" content="DOCUMENT"><meta name="DISTRIBUTION" content="GLOBAL"><meta name="ROBOTS" content="INDEX, FOLLOW"><meta name="REVISIT-AFTER" content="1 DAYS"><meta name="RATING" content="GENERAL"><meta http-equiv="PAGE-ENTER" content="RevealTrans(Duration=0,Transition=1)"><style id="StylePlaceholder"></style><link id="_DotNetNuke4_Portals__default_" rel="stylesheet" type="text/css" href="/DotNetNuke4/Portals/_default/default.css" /><link id="_DotNetNuke4_Portals__default_Skins_xhtml_" rel="stylesheet" type="text/css" href="/DotNetNuke4/Portals/_default/Skins/xhtml/skin.css" /><link id="_DotNetNuke4_Portals_0_" rel="stylesheet" type="text/css" href="/DotNetNuke4/Portals/0/portal.css" /><title>
 My Website > Home ( DNN 4.3.2 )
</title>

Any idea what goes wrong and how to solve that one?

Regards,

Erik

 

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Malformed "LINK" Tag in 4.3.0Malformed "LINK" Tag in 4.3.0


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out