Tuesday, March 13, 2012

setting title of content pages

How do you set the title of content pages? I can set the title of my
master pages, but I want each of my content pages to have a different
title.

*** Sent via Developersdex http://www.developersdex.com ***<% @. Page Language="VB" MasterPageFile="~/Master.master" Title="Content Page
1" %>

I have not tried this. please see if this helps.

-Augustin

"Mike P" wrote:

Quote:

Originally Posted by

How do you set the title of content pages? I can set the title of my
master pages, but I want each of my content pages to have a different
title.
>
>
>
*** Sent via Developersdex http://www.developersdex.com ***
>


Just to confirm - yes - this does work - also in VS.Net, you have a property
you can set which generates this in the directive.

David Wier
MVP/ASPInsider
http://aspnet101.com
http://aspexpress.com
"Augustin Prasanna" <AugustinPrasanna@.discussions.microsoft.comwrote in
message news:1CE4EE45-34FC-40F0-B935-2E3F0390BBC1@.microsoft.com...

Quote:

Originally Posted by

<% @. Page Language="VB" MasterPageFile="~/Master.master" Title="Content


Page

Quote:

Originally Posted by

1" %>
>
I have not tried this. please see if this helps.
>
-Augustin
>
"Mike P" wrote:
>

Quote:

Originally Posted by

How do you set the title of content pages? I can set the title of my
master pages, but I want each of my content pages to have a different
title.

*** Sent via Developersdex http://www.developersdex.com ***


Page.Title = "Whatever" is how it can be done in code.

<%= Clinton Gallagher
NET csgallagher AT metromilwaukee.com
URL http://www.metromilwaukee.com/clintongallagher/
"David Wier" <david_wier@.noSpamhotmail.comwrote in message
news:e%23KBMsjtGHA.1224@.TK2MSFTNGP03.phx.gbl...

Quote:

Originally Posted by

Just to confirm - yes - this does work - also in VS.Net, you have a
property
you can set which generates this in the directive.
>
David Wier
MVP/ASPInsider
http://aspnet101.com
http://aspexpress.com
>
"Augustin Prasanna" <AugustinPrasanna@.discussions.microsoft.comwrote in
message news:1CE4EE45-34FC-40F0-B935-2E3F0390BBC1@.microsoft.com...

Quote:

Originally Posted by

><% @. Page Language="VB" MasterPageFile="~/Master.master" Title="Content


Page

Quote:

Originally Posted by

>1" %>
>>
>I have not tried this. please see if this helps.
>>
>-Augustin
>>
>"Mike P" wrote:
>>

Quote:

Originally Posted by

How do you set the title of content pages? I can set the title of my
master pages, but I want each of my content pages to have a different
title.
>
>
>
*** Sent via Developersdex http://www.developersdex.com ***
>


>
>

0 comments:

Post a Comment