quote:
Is this a separate page all together?
Yes it is. Its called a 'code behind' page. For instance, if I have a page called Test.aspx, my code behind page (for VB.NET stuff) would be Test.aspx.vb and the pages could contain code like this:
Test.aspx
<%@ Page Language="VB" MasterPageFile="~/NewBlank.master" AutoEventWireup="false" CodeFile="Test.aspx.vb" Inherits="TestClass" title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ctphTitle" Runat="Server">
</asp:Content>
Test.aspx.vb
Partial Class TestClass
Inherits System.Web.UI.Page
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim metaDescription As New HtmlMeta()
metaDescription.Name = "keywords"
metaDescription.Content = "keyword1, keyword2"
Me.Header.Controls.Add(metaDescription)
End Sub
End Class
At least thats the best way I've found to deal with custom meta tags when using a Master page. Just remember both pages need to be in the same directory.
Notice the code in the declaration on the aspx page:
... CodeFile="Test.aspx.vb" Inherits="TestClass" ...
That's where you tell the page where the code behind is and what class to use. See the .vb file where we define the class "TestClass"?
It can probably be done on the same page with some <script runat=server> tag but I'm not familiar with it.
Thant help any?