开发者

asp:literal printing in final markup from kentico

开发者 https://www.devze.com 2023-03-21 16:31 出处:网络
A third party developer is building a kentico site for us and there\'s an asp:Literal tag printing in the head element as delivered to the end user. The tag is the following,

A third party developer is building a kentico site for us and there's an asp:Literal tag printing in the head element as delivered to the end user. The tag is the following,

<asp:Literal runat="server" ID="litTags" EnableViewState="false" />

Is this essential? It's causing the markup to fail validation and some browsers to complain. He says it's 开发者_StackOverflowessential for templates, but I can't see any sign of one getting printed on Kentico's own site, or any of the showcase sites. I can see that the tag appears in kentico's templating documentation, so I'm assuming the tag just isn't getting parsed by the server correctly.

Not being a Kentico or ASP guy I can't offer him any advice. Any ideas?


This markup shouldn't be delivered to the client. I think you may need a runat="server" attribute on the <head> element as well so ASP.Net will correctly see the Literal and output some text instead of the actual <asp:Literal... markup.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号