Last post Jul 23, 2006 10:46 PM by Gordon-Freeman
None
0 Points
10 Posts
Jul 19, 2006 06:07 AM|PascalUK|LINK
Hi,
Is somebody know how to set the HTML lang tag at run time?
My website's pages are dynamically build from a database, the language is only know at run time, and in order to keep robots happy I need ASP.NET to generate this tag for me.
Thank you very much for your help
Pascal
Contributor
2369 Points
908 Posts
Jul 23, 2006 10:46 PM|Gordon-Freeman|LINK
You may try using a Literal control, for example:
<html xmlns="http://www.w3.org/1999/xhtml" lang='<asp:literal runat="server"></asp:literal>'>
None
0 Points
10 Posts
HTML lang tag
Jul 19, 2006 06:07 AM|PascalUK|LINK
Hi,
Is somebody know how to set the HTML lang tag at run time?
My website's pages are dynamically build from a database, the language is only know at run time, and in order to keep robots happy I need ASP.NET to generate this tag for me.
Thank you very much for your help
Pascal
Contributor
2369 Points
908 Posts
Re: HTML lang tag
Jul 23, 2006 10:46 PM|Gordon-Freeman|LINK
You may try using a Literal control, for example:
<html xmlns="http://www.w3.org/1999/xhtml" lang='<asp:literal runat="server"></asp:literal>'>