ANAT2403
asked on
title in master pager
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"
DataNavigateUrlFields="Can didate_id"
DataNavigateUrlFormatStrin g="CandSub s.aspx?Can didate_id= {0}"
Target="_blank">
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?
Thankyou
ANat
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
DataNavigateUrlFields="Can
DataNavigateUrlFormatStrin
Target="_blank">
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?
Thankyou
ANat
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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.