Change Title

Discussion in 'ASP .Net' started by Chris, Sep 30, 2005.

  1. Chris

    Chris Guest

    I have a very simple vb.net aspx page. How do I change the title of the
    page code behind? Thanks.

    Chris
     
    Chris, Sep 30, 2005
    #1
    1. Advertising

  2. Chris

    Karl Seguin Guest

    <head>
    <title id="title" runat="server" />
    ......


    protected title as HtmlGenericControl

    Page_load
    title.InnerText = "Leeeeeerrooooy Jenkins"
    end page_load

    --
    MY ASP.Net tutorials
    http://www.openmymind.net/
    "Chris" <> wrote in message
    news:...
    >
    > I have a very simple vb.net aspx page. How do I change the title of the
    > page code behind? Thanks.
    >
    > Chris
     
    Karl Seguin, Sep 30, 2005
    #2
    1. Advertising

  3. Or...

    <HTML>
    <HEAD>
    <title><asp:Literal runat="server" id="PageTitle" /></title>



    Page_Load

    PageTitle.Text="huh?"

    End Page_Load

    Cheers,
    //Rutger

    http://www.RutgerSmit.com

    Chris wrote:
    >
    > I have a very simple vb.net aspx page. How do I change the title of the
    > page code behind? Thanks.
    >
    > Chris
     
    //Rutger Smit, Sep 30, 2005
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Andreas Klemt
    Replies:
    1
    Views:
    465
    Steve C. Orr, MCSD
    Aug 10, 2003
  2. Replies:
    0
    Views:
    540
  3. Replies:
    1
    Views:
    555
    David
    Apr 24, 2007
  4. soonic
    Replies:
    11
    Views:
    1,783
    soonic
    Jul 27, 2011
  5. Russell
    Replies:
    2
    Views:
    290
    Russell
    Sep 13, 2004
Loading...

Share This Page