My marketing departmend asked me for a simple solution to set metatags in content pages. (which uses master pages)
The first answere of a developer is: Add a ID and runat=server to Head control and code ... STOP... marketing means easy and frontpage and no line of code. So i tryed to put a second Content placeholder in the head section of the master page.
<
head runat="server"> <title>ppedv</title> <asp:contentplaceholder id="headinfos" runat="server"> </asp:contentplaceholder> </
head> I did not expect that this madness solution will compile. But no error till now. Next step: create the content page:
<%
@ Page Language="VB" MasterPageFile="~/MasterPage.master" Title="schulung" %> <
asp:Content ID="Content1" ContentPlaceHolderID="headinfos" Runat="Server"> <
meta name="AUTHOR" content="Hannes Preishuber"> </
asp:Content> <
asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> my content
</
asp:Content> Works and works.A wonder :-)
(should i get a software patent for that)