This is a migrated thread and some comments may be shown as answers.

AJAX, Masterpage & Page Title

3 Answers 97 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Andreas Müller
Top achievements
Rank 1
Andreas Müller asked on 04 Feb 2009, 10:00 AM
Hi

I'm using the AJAX Manager to update a control inside a page built upon a masterpage (all controls for this update are located in the detail-page, so there is no interaction with the master-page). This all works great but as soon as the new data has been loaded the page-title of changes to "untitled page".

I tried to change this by setting the ajax-manager-property:

EnablePageHeadUpdate="True" 

And in the Code-Behind where the data is beeing updated I tried to change the title using the following code:

Page.Header.Title = "Test" 
 ---
Master.Page.Header.Title = "Test" 
 ---
Master.Page.Title = "Test" 
 ---
Dim mp As New MasterPage 
mp = CType(Master, MasterPage) 
mp.Page.Title = "asdf" 
(these are several approaches in one code-block - I tried all of them - nothing worked)

Also setting the ajax-property "EnablePageHeadUpdate" to false didn't do the trick.

So, how do I change the page-title?

Thanks!
Andreas

3 Answers, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 09 Feb 2009, 08:29 AM
Hello Andreas,

Based on this information, it is hard to determine what is causing this behavior.
If the issue persists, you can open a formal support ticket, and send us the problematic code, in the form of a small working project, for further investigation.

Kind regards,
Yavor
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Tom
Top achievements
Rank 1
answered on 27 Jun 2015, 03:14 PM
Was this resolved? I have the same issue. I have form with user information that is based on an id being passed in. On initial load I set the page title to include the user name. When I execute any ajax requests on that page the page title is reset to the one specified in the @Page directive.
0
Maria Ilieva
Telerik team
answered on 01 Jul 2015, 03:02 PM
Hello Tom,

Can I kindly ask you to share more details (markup, related code behind) for the described scenario? Thus we will be able to test it locally and verify if this issue has been fixed and if not if possible workaround is available.

Regards,
Maria Ilieva
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Ajax
Asked by
Andreas Müller
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Tom
Top achievements
Rank 1
Maria Ilieva
Telerik team
Share this question
or