Hi, apologies, I ticked my earlier question on this as having been sorted - but on trying the solutions two kind people gave, it doesn't work. My goal is to have different Meta information on my Content pages - different from the MasterPage that is. My Content page contained this....
<%@ Page Title="" Language="VB" MasterPageFile="~/MasterPage.master" %>
<script runat="server">
</script>
<asp:Content ID="Content1" ContentPlaceHolderID="leftContent" Runat="Server"></asp:Content>
I tried to add what the two respondents told me. The first change I made to my Content page, using the method suggested to me, looked like this....
<%@ Page Title="" Language="VB" MasterPageFile="~/MasterPage.master" %> <script runat="server" type = "text/VB" >
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim meta As HtmlMeta
meta = New HtmlMeta()
meta.Name = "keywords"meta.Content = "sas, sas, sas, sas"
Page.Header.Controls.Add(meta)
End Sub
</script
<asp:Content ID="Content1" ContentPlaceHolderID="leftContent" Runat="Server"></asp:Content>
As you can see above, I inserted into position exactly as the answer instructed, but it didn't work. The result was, when I loaded the page the original Meta descriptions were still in place from the MasterPage, they were not replaced as I'd hoped, instead this extra line was found in the source code.....
<meta name="keywords" content="sas, sas, sas, sas" />
Did I understand the instructions given to me I wonder?
I really am very new at this, very new - I even need to be told about full-stops, and noddy stuff please. I still can't get my contents page to have their own Meta lines, they still keep reading those from the MasterPage - would there be any other suggestions please?
Regards, LisaMac