HTML:
<meta name="description" runat="server" id="MetaDescription" content="" />
コードビハインド:
MetaDescription.Attributes["content"] = ThisBlog.MetaDescription;
これは次のようにレンダリングされます。
<meta id="HeadContent_MetaDescription" name="description" content="My page description"></meta>
この回答によると、 ID 属性を持たず、 で閉じる必要があります/>
。
このようにレンダリングするにはどうすればよいですか?