HTML lang tag RRS feed

  • Question

  • User-417554367 posted


    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


    Wednesday, July 19, 2006 6:07 AM

All replies

  • User-1936818034 posted

    You may try using a Literal control, for example:

    <html xmlns="http://www.w3.org/1999/xhtml" lang='<asp:literal runat="server"></asp:literal>'>

    Sunday, July 23, 2006 10:46 PM