Change the title with master page

Last post 11-08-2009 7:01 PM by tamilcodes. 5 replies.

Sort Posts:

  • Change the title with master page

    11-07-2009, 9:44 AM

    I would like to change the title of the page wich I create with master page but I can't ! How can I do that?  

    Tugberk Ugurlu (WWD 2008 Express Edition / VB)
  • Re: Change the title with master page

    11-07-2009, 11:52 AM
    Answer
    • Contributor
      3,384 point Contributor
    • Danish Ali
    • Member since 08-08-2008, 11:22 PM
    • Fort Lauderdale, US
    • Posts 468

    In your Page write the following code.


    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
            Me.Title = "I am Page"
        End Sub

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

            Me.Title = "I am Page"

        End Sub


    If my post solves your problem, please mark it as an answer.
  • Re: Change the title with master page

    11-07-2009, 11:55 AM
    Answer
    • Participant
      1,641 point Participant
    • vishwaraj1
    • Member since 11-07-2008, 7:44 PM
    • India
    • Posts 424

     protected void Page_Load(object sender, EventArgs e)
        {
           
                  Page.Title = "this is title";
        }



    Regards:

    Vishwaraj Malik

    VB to C# Converter


    Please: Don't forget to click "Mark as Answer" on the post that helped you. That way future readers will know which post solved your issue.
  • Re: Change the title with master page

    11-07-2009, 12:31 PM

    Thanks a lot. It really works. But here my question is that search engines can define this titile ? 

    Tugberk Ugurlu (WWD 2008 Express Edition / VB)
  • Re: Change the title with master page

    11-07-2009, 12:39 PM
    • Participant
      1,641 point Participant
    • vishwaraj1
    • Member since 11-07-2008, 7:44 PM
    • India
    • Posts 424

    I think search engine will define it....Cool

    Regards:

    Vishwaraj Malik

    VB to C# Converter


    Please: Don't forget to click "Mark as Answer" on the post that helped you. That way future readers will know which post solved your issue.
  • Re: Change the title with master page

    11-08-2009, 7:01 PM
    Answer
    • Contributor
      2,572 point Contributor
    • tamilcodes
    • Member since 04-30-2009, 1:28 PM
    • Posts 533


    Page.Title = "Your Page Title"; 


    it is just rendered as html title tag 

    <title>Your page title</title> so search engine will index it

     

Page 1 of 1 (6 items)