CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Page Heading

  1. #1
    Join Date
    Apr 2005
    Posts
    1,828

    Page Heading

    Is there any way, through which I can change the page (.aspx pages) heading at runtime? The pages are derived from the master page.

    Thanks in Advance

  2. #2
    Join Date
    Feb 2007
    Location
    Cat Square (near Charlotte)
    Posts
    16

    Re: Page Heading

    If you're talking about the Page "Title", that is nothing more than setting the Title property of the page. Good place to do this is in the Page_Load() event handler.

    Code:
        protected void Page_Load(object sender, EventArgs e)
        {
          	this.Title = "New Title";
        }
    I just quickly created a test project using one of Microsoft's ASP templates which uses master pages (the Personal Design website). One thing I noticed, is that not every one of the pages had a "code behind page". For one that did, I was able to access this event handler.

    For a page that did NOT already have a code behind page, I've never tried to create a code behind page...
    but here's a link to how to do that:
    http://weblogs.asp.net/jgalloway/arc...in-vs2005.aspx
    C# - Visual Studio 2005
    Frameworks 2.0

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

Featured