Results 1 to 2 of 2

Thread: [2005] How to set the title of all my pages?

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2000
    Location
    I'm right here!
    Posts
    849

    Question [2005] How to set the title of all my pages?

    Hello,

    I have set the title of my masterpage to my website name, but the titles of
    all the other pages did not change.
    How do I change them all together?

    Thanks!

    Dekel C.

  2. #2
    PowerPoster
    Join Date
    Oct 2002
    Location
    British Columbia
    Posts
    9,758

    Re: [2005] How to set the title of all my pages?

    When you add a new page, the default title attribute is added to the @Page directive (title="Untitled Page").

    Delete it as it overrides the Title you may have set in the MasterPage (Head section).

    You could also set the Title in one of the MasterPage events in the code behind page.

    Code:
    Protected Sub Page_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Init
                Page.Header.Title = "This title overrides titles set in aspx files."
    End Sub

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width