Use Master page but different title for pages

Last post 09-02-2006 12:14 PM by StrongTypes. 1 replies.

Sort Posts:

  • Use Master page but different title for pages

    09-02-2006, 5:01 AM
    • Member
      292 point Member
    • s2002
    • Member since 10-04-2005, 4:42 PM
    • Posts 232

    I have defined <head> and <title> tags in the master page as follow:

    <head id="Head1" runat="server">
    <title></title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    </head>

    Now I want that the title of the page varry from page tom page and won't be the same in
    all pages.when I put<title> in the form1 that use the above master page.I encounter error.

    In summary How could Use Master page while each page has it's own title tag.

  • Re: Use Master page but different title for pages

    09-02-2006, 12:14 PM
    Answer
    • All-Star
      30,698 point All-Star
    • StrongTypes
    • Member since 12-13-2005, 11:21 AM
    • California
    • Posts 6,007
    • ASPInsiders
      Moderator
      TrustedFriends-MVPs

    You can use either Title in the page directive or this/Me.Title from code-beside.

    Ryan 

Page 1 of 1 (2 items)