title in master pager

Posted on 2006-06-01
Last Modified: 2012-05-05
I ASP.NET 2.0 I have a master page and 10 content pages.
I call the master page from a row in a gridview through a hyperlink as in the following:
and each hyper link will be opened in a new window.
               <asp:HyperLinkField DataTextField="Given_Names" headertext="Given Names"

I want that each page when opened will have its' own title. and I have 2 problem in this:
1. I don't know how to set a title in a master content page. I put a title in the master page but it is not seen.
2. I would like to add to the title the name of the candidate (Given_Names)
How do I do these actions?
Question by:ANAT2403
    LVL 3

    Accepted Solution

    The title of the page can be changed through the content page's "Page.Title" property.

    i.e: Page.Title = "Hello world";
    LVL 12

    Expert Comment

    You can set it EtherZa's way if it's something dynamic, or you can use the <title> if it's static.

    However, that does a single title for all pages that use that master page.  Now if you want to set it per page, in the aspx page that inherits the master page you need to change it in here

    <%@ Page .... Title="Untitled Page" %>

    So to use the master page title for the aspx page, delete the Title= in the aspx page.  To use it's own, put it bakc in.

    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    Join & Write a Comment

    This article covers the basics of the Sass, which is a CSS extension language. You will learn about variables, mixins, and nesting.
    Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL ( several years ago, it seemed like now was a good time to updat…
    The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
    The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

    730 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now